using GreenTree.Nachtragsmanagement.Web.Framework.Mvc.Routes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using System.Web.Routing;

namespace GreenTree.Nachtragsmanagement.Plugin.MonitionList
{
    public class RouteProvider : IRouteProvider
    {
        public int Priority
        {
            get { return 0; }
        }

        public void RegisterRoutes(RouteCollection routes)
        {
            routes.MapRoute(
                "GreenTree.Nachtragsmanagement.Plugin.MonitionList.Deviations",
                "monitionlist/deviations",
                new
                {
                    controller = "MonitionList",
                    action = "Deviations"
                },
                new[]
                {
                    "GreenTree.Nachtragsmanagement.Plugin.MonitionList.Controllers"
                }
            );

            routes.MapRoute(
                "GreenTree.Nachtragsmanagement.Plugin.MonitionList.Appendices",
                "monitionlist/appendices",
                new
                {
                    controller = "MonitionList",
                    action = "Appendices"
                },
                new[]
                {
                    "GreenTree.Nachtragsmanagement.Plugin.MonitionList.Controllers"
                }
            );
        }
    }
}
