Breaking 05_03 in twain

This commit is contained in:
Jess Chadwick
2018-06-11 01:44:36 -04:00
parent 20458e435e
commit cedb4e8f46
299 changed files with 61234 additions and 85 deletions

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HPlusSports.Models;
namespace HPlusSports
{
public static class UrlHelperExtensions
{
public static string Product(this System.Web.Mvc.UrlHelper urlHelper, Product product)
{
return Product(urlHelper, product?.SKU);
}
public static string Product(this System.Web.Mvc.UrlHelper urlHelper, string sku)
{
return urlHelper.Action("Product", "Products", new { id = sku });
}
}
}