using System.Web.Mvc; namespace FHT.Agency.Web.Extensions { public static class ContollerExtensions { /// /// Extension methods for the controller to allow jsonp. /// /// The controller. /// The data. /// #pragma warning disable RCS1175 // Unused this parameter. public static JsonpResult Jsonp(this Controller controller, object data) #pragma warning restore RCS1175 // Unused this parameter. { return new JsonpResult() { Data = data, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; } } }