14 lines
279 B
C#
14 lines
279 B
C#
using System.Web;
|
|
using System.Web.Mvc;
|
|
using InventoryTraker.Web.Utilities;
|
|
|
|
namespace InventoryTraker.Web.Helpers
|
|
{
|
|
public static class JsonHtmlHelpers
|
|
{
|
|
public static IHtmlString JsonFor<T>(this HtmlHelper helper, T obj)
|
|
{
|
|
return helper.Raw(obj.ToJson());
|
|
}
|
|
}
|
|
} |