using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Nop.Web.Framework.Localization;
using Nop.Web.Framework.Mvc.Routing;

namespace Nop.Web.Infrastructure
{
    public class RouteProviderMtb2c : IRouteProvider
    {
        public void RegisterRoutes(IRouteBuilder routeBuilder)
        {
            routeBuilder.MapLocalizedRoute("BestSeller", "/product/best-sellers",
                new { controller = "ProductMtb2c", action = "BestSellers" });

            //blowouts

            routeBuilder.MapLocalizedRoute("Blowouts", "/product/blowouts",
                new { controller = "ProductMtb2c", action = "blowouts" });

            routeBuilder.MapLocalizedRoute("CrazyDeals", "/product/crazy-deals",
                new { controller = "ProductMtb2c", action = "crazydeals" });

            routeBuilder.MapLocalizedRoute("NewProductsMtb2c", "/product/new-products",
                new { controller = "ProductMtb2c", action = "NewProducts" });
        }

        /// <summary>
        /// Gets a priority of route provider
        /// </summary>
        public int Priority
        {
            get { return 100; }
        }
    }
}
