a43db01b96
Updated: SignalR 2.1.1, Moment.js 2.7, Reactive Extensions 2.2.5, TinyMCE 4.1.2. Customized TinyMCE skin and implemented FontAwesome icons. T4MVC refactored.
194 lines
7.8 KiB
C#
194 lines
7.8 KiB
C#
// <auto-generated />
|
|
// This file was generated by a T4 template.
|
|
// Don't change it directly as your change would get overwritten. Instead, make changes
|
|
// to the .tt file (i.e. the T4 template) and save it to regenerate this file.
|
|
|
|
// Make sure the compiler doesn't complain about missing Xml comments
|
|
#pragma warning disable 1591
|
|
#region T4MVC
|
|
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.CodeDom.Compiler;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Threading.Tasks;
|
|
using System.Web;
|
|
using System.Web.Hosting;
|
|
using System.Web.Mvc;
|
|
using System.Web.Mvc.Ajax;
|
|
using System.Web.Mvc.Html;
|
|
using System.Web.Routing;
|
|
using T4MVC;
|
|
namespace Disco.Web.Areas.Config.Controllers
|
|
{
|
|
public partial class DeviceProfileController
|
|
{
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public DeviceProfileController() { }
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
protected DeviceProfileController(Dummy d) { }
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
protected RedirectToRouteResult RedirectToAction(ActionResult result)
|
|
{
|
|
var callInfo = result.GetT4MVCResult();
|
|
return RedirectToRoute(callInfo.RouteValueDictionary);
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
protected RedirectToRouteResult RedirectToAction(Task<ActionResult> taskResult)
|
|
{
|
|
return RedirectToAction(taskResult.Result);
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
protected RedirectToRouteResult RedirectToActionPermanent(ActionResult result)
|
|
{
|
|
var callInfo = result.GetT4MVCResult();
|
|
return RedirectToRoutePermanent(callInfo.RouteValueDictionary);
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
protected RedirectToRouteResult RedirectToActionPermanent(Task<ActionResult> taskResult)
|
|
{
|
|
return RedirectToActionPermanent(taskResult.Result);
|
|
}
|
|
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult Index()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Index);
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public DeviceProfileController Actions { get { return MVC.Config.DeviceProfile; } }
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
public readonly string Area = "Config";
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
public readonly string Name = "DeviceProfile";
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
public const string NameConst = "DeviceProfile";
|
|
|
|
static readonly ActionNamesClass s_actions = new ActionNamesClass();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionNamesClass ActionNames { get { return s_actions; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionNamesClass
|
|
{
|
|
public readonly string Index = "Index";
|
|
public readonly string Create = "Create";
|
|
public readonly string Defaults = "Defaults";
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionNameConstants
|
|
{
|
|
public const string Index = "Index";
|
|
public const string Create = "Create";
|
|
public const string Defaults = "Defaults";
|
|
}
|
|
|
|
|
|
static readonly ActionParamsClass_Index s_params_Index = new ActionParamsClass_Index();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_Index IndexParams { get { return s_params_Index; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_Index
|
|
{
|
|
public readonly string id = "id";
|
|
}
|
|
static readonly ActionParamsClass_Create s_params_Create = new ActionParamsClass_Create();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_Create CreateParams { get { return s_params_Create; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_Create
|
|
{
|
|
public readonly string model = "model";
|
|
}
|
|
static readonly ViewsClass s_views = new ViewsClass();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ViewsClass Views { get { return s_views; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ViewsClass
|
|
{
|
|
static readonly _ViewNamesClass s_ViewNames = new _ViewNamesClass();
|
|
public _ViewNamesClass ViewNames { get { return s_ViewNames; } }
|
|
public class _ViewNamesClass
|
|
{
|
|
public readonly string _Table = "_Table";
|
|
public readonly string _TableRender = "_TableRender";
|
|
public readonly string Create = "Create";
|
|
public readonly string Defaults = "Defaults";
|
|
public readonly string Index = "Index";
|
|
public readonly string Show = "Show";
|
|
}
|
|
public readonly string _Table = "~/Areas/Config/Views/DeviceProfile/_Table.cshtml";
|
|
public readonly string _TableRender = "~/Areas/Config/Views/DeviceProfile/_TableRender.cshtml";
|
|
public readonly string Create = "~/Areas/Config/Views/DeviceProfile/Create.cshtml";
|
|
public readonly string Defaults = "~/Areas/Config/Views/DeviceProfile/Defaults.cshtml";
|
|
public readonly string Index = "~/Areas/Config/Views/DeviceProfile/Index.cshtml";
|
|
public readonly string Show = "~/Areas/Config/Views/DeviceProfile/Show.cshtml";
|
|
}
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public partial class T4MVC_DeviceProfileController : Disco.Web.Areas.Config.Controllers.DeviceProfileController
|
|
{
|
|
public T4MVC_DeviceProfileController() : base(Dummy.Instance) { }
|
|
|
|
[NonAction]
|
|
partial void IndexOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int? id);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult Index(int? id)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Index);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
IndexOverride(callInfo, id);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void CreateOverride(T4MVC_System_Web_Mvc_ActionResult callInfo);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult Create()
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Create);
|
|
CreateOverride(callInfo);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void CreateOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Disco.Web.Areas.Config.Models.DeviceProfile.CreateModel model);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult Create(Disco.Web.Areas.Config.Models.DeviceProfile.CreateModel model)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Create);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "model", model);
|
|
CreateOverride(callInfo, model);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void DefaultsOverride(T4MVC_System_Web_Mvc_ActionResult callInfo);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult Defaults()
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Defaults);
|
|
DefaultsOverride(callInfo);
|
|
return callInfo;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
#endregion T4MVC
|
|
#pragma warning restore 1591
|