376 lines
18 KiB
C#
376 lines
18 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 UserController
|
|
{
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public UserController() { }
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
protected UserController(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 AttachmentDownload()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentDownload);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult AttachmentThumbnail()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentThumbnail);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult AttachmentUpload()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentUpload);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult Attachment()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Attachment);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult Attachments()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Attachments);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult AttachmentRemove()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentRemove);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult GeneratePdf()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.GeneratePdf);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult GeneratePdfPackage()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.GeneratePdfPackage);
|
|
}
|
|
[NonAction]
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public virtual System.Web.Mvc.ActionResult Photo()
|
|
{
|
|
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Photo);
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public UserController Actions { get { return MVC.API.User; } }
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
public readonly string Area = "API";
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
public readonly string Name = "User";
|
|
[GeneratedCode("T4MVC", "2.0")]
|
|
public const string NameConst = "User";
|
|
[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 AttachmentDownload = "AttachmentDownload";
|
|
public readonly string AttachmentThumbnail = "AttachmentThumbnail";
|
|
public readonly string AttachmentUpload = "AttachmentUpload";
|
|
public readonly string Attachment = "Attachment";
|
|
public readonly string Attachments = "Attachments";
|
|
public readonly string AttachmentRemove = "AttachmentRemove";
|
|
public readonly string GeneratePdf = "GeneratePdf";
|
|
public readonly string GeneratePdfPackage = "GeneratePdfPackage";
|
|
public readonly string Photo = "Photo";
|
|
}
|
|
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionNameConstants
|
|
{
|
|
public const string AttachmentDownload = "AttachmentDownload";
|
|
public const string AttachmentThumbnail = "AttachmentThumbnail";
|
|
public const string AttachmentUpload = "AttachmentUpload";
|
|
public const string Attachment = "Attachment";
|
|
public const string Attachments = "Attachments";
|
|
public const string AttachmentRemove = "AttachmentRemove";
|
|
public const string GeneratePdf = "GeneratePdf";
|
|
public const string GeneratePdfPackage = "GeneratePdfPackage";
|
|
public const string Photo = "Photo";
|
|
}
|
|
|
|
|
|
static readonly ActionParamsClass_AttachmentDownload s_params_AttachmentDownload = new ActionParamsClass_AttachmentDownload();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_AttachmentDownload AttachmentDownloadParams { get { return s_params_AttachmentDownload; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_AttachmentDownload
|
|
{
|
|
public readonly string id = "id";
|
|
}
|
|
static readonly ActionParamsClass_AttachmentThumbnail s_params_AttachmentThumbnail = new ActionParamsClass_AttachmentThumbnail();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_AttachmentThumbnail AttachmentThumbnailParams { get { return s_params_AttachmentThumbnail; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_AttachmentThumbnail
|
|
{
|
|
public readonly string id = "id";
|
|
}
|
|
static readonly ActionParamsClass_AttachmentUpload s_params_AttachmentUpload = new ActionParamsClass_AttachmentUpload();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_AttachmentUpload AttachmentUploadParams { get { return s_params_AttachmentUpload; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_AttachmentUpload
|
|
{
|
|
public readonly string id = "id";
|
|
public readonly string Domain = "Domain";
|
|
public readonly string comments = "comments";
|
|
}
|
|
static readonly ActionParamsClass_Attachment s_params_Attachment = new ActionParamsClass_Attachment();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_Attachment AttachmentParams { get { return s_params_Attachment; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_Attachment
|
|
{
|
|
public readonly string id = "id";
|
|
}
|
|
static readonly ActionParamsClass_Attachments s_params_Attachments = new ActionParamsClass_Attachments();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_Attachments AttachmentsParams { get { return s_params_Attachments; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_Attachments
|
|
{
|
|
public readonly string id = "id";
|
|
public readonly string Domain = "Domain";
|
|
}
|
|
static readonly ActionParamsClass_AttachmentRemove s_params_AttachmentRemove = new ActionParamsClass_AttachmentRemove();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_AttachmentRemove AttachmentRemoveParams { get { return s_params_AttachmentRemove; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_AttachmentRemove
|
|
{
|
|
public readonly string id = "id";
|
|
}
|
|
static readonly ActionParamsClass_GeneratePdf s_params_GeneratePdf = new ActionParamsClass_GeneratePdf();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_GeneratePdf GeneratePdfParams { get { return s_params_GeneratePdf; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_GeneratePdf
|
|
{
|
|
public readonly string id = "id";
|
|
public readonly string Domain = "Domain";
|
|
public readonly string DocumentTemplateId = "DocumentTemplateId";
|
|
}
|
|
static readonly ActionParamsClass_GeneratePdfPackage s_params_GeneratePdfPackage = new ActionParamsClass_GeneratePdfPackage();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_GeneratePdfPackage GeneratePdfPackageParams { get { return s_params_GeneratePdfPackage; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_GeneratePdfPackage
|
|
{
|
|
public readonly string id = "id";
|
|
public readonly string Domain = "Domain";
|
|
public readonly string DocumentTemplatePackageId = "DocumentTemplatePackageId";
|
|
}
|
|
static readonly ActionParamsClass_Photo s_params_Photo = new ActionParamsClass_Photo();
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public ActionParamsClass_Photo PhotoParams { get { return s_params_Photo; } }
|
|
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
|
public class ActionParamsClass_Photo
|
|
{
|
|
public readonly string userId = "userId";
|
|
}
|
|
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_UserController : Disco.Web.Areas.API.Controllers.UserController
|
|
{
|
|
public T4MVC_UserController() : base(Dummy.Instance) { }
|
|
|
|
[NonAction]
|
|
partial void AttachmentDownloadOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult AttachmentDownload(int id)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentDownload);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
AttachmentDownloadOverride(callInfo, id);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void AttachmentThumbnailOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult AttachmentThumbnail(int id)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentThumbnail);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
AttachmentThumbnailOverride(callInfo, id);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void AttachmentUploadOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, string Domain, string comments);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult AttachmentUpload(string id, string Domain, string comments)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentUpload);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "Domain", Domain);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "comments", comments);
|
|
AttachmentUploadOverride(callInfo, id, Domain, comments);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void AttachmentOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult Attachment(int id)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Attachment);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
AttachmentOverride(callInfo, id);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void AttachmentsOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, string Domain);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult Attachments(string id, string Domain)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Attachments);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "Domain", Domain);
|
|
AttachmentsOverride(callInfo, id, Domain);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void AttachmentRemoveOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult AttachmentRemove(int id)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentRemove);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
AttachmentRemoveOverride(callInfo, id);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void GeneratePdfOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, string Domain, string DocumentTemplateId);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult GeneratePdf(string id, string Domain, string DocumentTemplateId)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.GeneratePdf);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "Domain", Domain);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "DocumentTemplateId", DocumentTemplateId);
|
|
GeneratePdfOverride(callInfo, id, Domain, DocumentTemplateId);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void GeneratePdfPackageOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, string Domain, string DocumentTemplatePackageId);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult GeneratePdfPackage(string id, string Domain, string DocumentTemplatePackageId)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.GeneratePdfPackage);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "Domain", Domain);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "DocumentTemplatePackageId", DocumentTemplatePackageId);
|
|
GeneratePdfPackageOverride(callInfo, id, Domain, DocumentTemplatePackageId);
|
|
return callInfo;
|
|
}
|
|
|
|
[NonAction]
|
|
partial void PhotoOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string userId);
|
|
|
|
[NonAction]
|
|
public override System.Web.Mvc.ActionResult Photo(string userId)
|
|
{
|
|
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Photo);
|
|
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "userId", userId);
|
|
PhotoOverride(callInfo, userId);
|
|
return callInfo;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
#endregion T4MVC
|
|
#pragma warning restore 1591, 3008, 3009, 0108, 0114
|