206 lines
9.4 KiB
C#
206 lines
9.4 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 and CLS compliance
|
|
// 0108: suppress "Foo hides inherited member Foo. Use the new keyword if hiding was intended." when a controller and its abstract parent are both processed
|
|
// 0114: suppress "Foo.BarController.Baz()' hides inherited member 'Qux.BarController.Baz()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword." when an action (with an argument) overrides an action in a parent controller
|
|
#pragma warning disable 1591, 3008, 3009, 0108, 0114
|
|
#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.API.Controllers
|
|
{
|
|
public partial class DeviceFlagAssignmentController
|
|
{
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public DeviceFlagAssignmentController() { }
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
protected DeviceFlagAssignmentController(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 Edit()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Edit);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult AddDevice()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AddDevice);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult RemoveDevice()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.RemoveDevice);
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public DeviceFlagAssignmentController Actions { get { return MVC.API.DeviceFlagAssignment; } }
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
public readonly string Area = "API";
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
public readonly string Name = "DeviceFlagAssignment";
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
public const string NameConst = "DeviceFlagAssignment";
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
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 Edit = "Edit";
|
|
public readonly string AddDevice = "AddDevice";
|
|
public readonly string RemoveDevice = "RemoveDevice";
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionNameConstants
|
|
{
|
|
public const string Edit = "Edit";
|
|
public const string AddDevice = "AddDevice";
|
|
public const string RemoveDevice = "RemoveDevice";
|
|
}
|
|
|
|
|
|
static readonly ActionParamsClass_Edit s_params_Edit = new ActionParamsClass_Edit();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_Edit EditParams { get { return s_params_Edit; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_Edit
|
|
{
|
|
public readonly string id = "id";
|
|
public readonly string comments = "comments";
|
|
public readonly string removeDate = "removeDate";
|
|
public readonly string redirect = "redirect";
|
|
}
|
|
static readonly ActionParamsClass_AddDevice s_params_AddDevice = new ActionParamsClass_AddDevice();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_AddDevice AddDeviceParams { get { return s_params_AddDevice; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_AddDevice
|
|
{
|
|
public readonly string id = "id";
|
|
public readonly string deviceSerialNumber = "deviceSerialNumber";
|
|
public readonly string comments = "comments";
|
|
public readonly string removeDate = "removeDate";
|
|
}
|
|
static readonly ActionParamsClass_RemoveDevice s_params_RemoveDevice = new ActionParamsClass_RemoveDevice();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_RemoveDevice RemoveDeviceParams { get { return s_params_RemoveDevice; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_RemoveDevice
|
|
{
|
|
public readonly string id = "id";
|
|
}
|
|
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
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public partial class T4MVC_DeviceFlagAssignmentController : Disco.Web.Areas.API.Controllers.DeviceFlagAssignmentController
|
|
{
|
|
public T4MVC_DeviceFlagAssignmentController() : base(Dummy.Instance) { }
|
|
|
|
[NonAction]
|
|
partial void EditOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id, string comments, System.DateTime? removeDate, bool? redirect);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult Edit(int id, string comments, System.DateTime? removeDate, bool? redirect)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Edit);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "comments", comments);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "removeDate", removeDate);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "redirect", redirect);
|
|
EditOverride(callInfo, id, comments, removeDate, redirect);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void AddDeviceOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id, string deviceSerialNumber, string comments, System.DateTime? removeDate);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult AddDevice(int id, string deviceSerialNumber, string comments, System.DateTime? removeDate)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AddDevice);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "deviceSerialNumber", deviceSerialNumber);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "comments", comments);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "removeDate", removeDate);
|
|
AddDeviceOverride(callInfo, id, deviceSerialNumber, comments, removeDate);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void RemoveDeviceOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult RemoveDevice(int id)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.RemoveDevice);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
RemoveDeviceOverride(callInfo, id);
|
|
return callInfo;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
#endregion T4MVC
|
|
#pragma warning restore 1591, 3008, 3009, 0108, 0114
|