add comments for users [#145]
This commit is contained in:
@@ -59,6 +59,30 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
return RedirectToActionPermanent(taskResult.Result);
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public virtual System.Web.Mvc.ActionResult Comments()
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Comments);
|
||||
}
|
||||
[NonAction]
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public virtual System.Web.Mvc.ActionResult Comment()
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Comment);
|
||||
}
|
||||
[NonAction]
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public virtual System.Web.Mvc.ActionResult CommentAdd()
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.CommentAdd);
|
||||
}
|
||||
[NonAction]
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public virtual System.Web.Mvc.ActionResult CommentRemove()
|
||||
{
|
||||
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.CommentRemove);
|
||||
}
|
||||
[NonAction]
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public virtual System.Web.Mvc.ActionResult AttachmentDownload()
|
||||
@@ -136,6 +160,10 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public class ActionNamesClass
|
||||
{
|
||||
public readonly string Comments = "Comments";
|
||||
public readonly string Comment = "Comment";
|
||||
public readonly string CommentAdd = "CommentAdd";
|
||||
public readonly string CommentRemove = "CommentRemove";
|
||||
public readonly string AttachmentDownload = "AttachmentDownload";
|
||||
public readonly string AttachmentThumbnail = "AttachmentThumbnail";
|
||||
public readonly string AttachmentUpload = "AttachmentUpload";
|
||||
@@ -151,6 +179,10 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public class ActionNameConstants
|
||||
{
|
||||
public const string Comments = "Comments";
|
||||
public const string Comment = "Comment";
|
||||
public const string CommentAdd = "CommentAdd";
|
||||
public const string CommentRemove = "CommentRemove";
|
||||
public const string AttachmentDownload = "AttachmentDownload";
|
||||
public const string AttachmentThumbnail = "AttachmentThumbnail";
|
||||
public const string AttachmentUpload = "AttachmentUpload";
|
||||
@@ -164,6 +196,41 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
}
|
||||
|
||||
|
||||
static readonly ActionParamsClass_Comments s_params_Comments = new ActionParamsClass_Comments();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ActionParamsClass_Comments CommentsParams { get { return s_params_Comments; } }
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public class ActionParamsClass_Comments
|
||||
{
|
||||
public readonly string id = "id";
|
||||
public readonly string domain = "domain";
|
||||
}
|
||||
static readonly ActionParamsClass_Comment s_params_Comment = new ActionParamsClass_Comment();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ActionParamsClass_Comment CommentParams { get { return s_params_Comment; } }
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public class ActionParamsClass_Comment
|
||||
{
|
||||
public readonly string id = "id";
|
||||
}
|
||||
static readonly ActionParamsClass_CommentAdd s_params_CommentAdd = new ActionParamsClass_CommentAdd();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ActionParamsClass_CommentAdd CommentAddParams { get { return s_params_CommentAdd; } }
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public class ActionParamsClass_CommentAdd
|
||||
{
|
||||
public readonly string id = "id";
|
||||
public readonly string domain = "domain";
|
||||
public readonly string comment = "comment";
|
||||
}
|
||||
static readonly ActionParamsClass_CommentRemove s_params_CommentRemove = new ActionParamsClass_CommentRemove();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ActionParamsClass_CommentRemove CommentRemoveParams { get { return s_params_CommentRemove; } }
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public class ActionParamsClass_CommentRemove
|
||||
{
|
||||
public readonly string id = "id";
|
||||
}
|
||||
static readonly ActionParamsClass_AttachmentDownload s_params_AttachmentDownload = new ActionParamsClass_AttachmentDownload();
|
||||
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
|
||||
public ActionParamsClass_AttachmentDownload AttachmentDownloadParams { get { return s_params_AttachmentDownload; } }
|
||||
@@ -271,6 +338,57 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
{
|
||||
public T4MVC_UserController() : base(Dummy.Instance) { }
|
||||
|
||||
[NonAction]
|
||||
partial void CommentsOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, string domain);
|
||||
|
||||
[NonAction]
|
||||
public override System.Web.Mvc.ActionResult Comments(string id, string domain)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Comments);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "domain", domain);
|
||||
CommentsOverride(callInfo, id, domain);
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
partial void CommentOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id);
|
||||
|
||||
[NonAction]
|
||||
public override System.Web.Mvc.ActionResult Comment(int id)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Comment);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
||||
CommentOverride(callInfo, id);
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
partial void CommentAddOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string id, string domain, string comment);
|
||||
|
||||
[NonAction]
|
||||
public override System.Web.Mvc.ActionResult CommentAdd(string id, string domain, string comment)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.CommentAdd);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "domain", domain);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "comment", comment);
|
||||
CommentAddOverride(callInfo, id, domain, comment);
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
partial void CommentRemoveOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id);
|
||||
|
||||
[NonAction]
|
||||
public override System.Web.Mvc.ActionResult CommentRemove(int id)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.CommentRemove);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "id", id);
|
||||
CommentRemoveOverride(callInfo, id);
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
partial void AttachmentDownloadOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id);
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Disco.Services.Interop.ActiveDirectory;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Disco.Web.Controllers
|
||||
@@ -38,13 +37,34 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
{
|
||||
public partial class UserController
|
||||
{
|
||||
[NonAction]
|
||||
public virtual ActionResult Comments(string id)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, nameof(Comments));
|
||||
|
||||
Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
public virtual ActionResult CommentAdd(string id, string comment = null)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, nameof(CommentAdd));
|
||||
|
||||
Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, nameof(comment), comment);
|
||||
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
[NonAction]
|
||||
public virtual ActionResult AttachmentUpload(string id, string Comments)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentUpload);
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, nameof(AttachmentUpload));
|
||||
|
||||
Disco.Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "Comments", Comments);
|
||||
Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, nameof(Comments), Comments);
|
||||
|
||||
return callInfo;
|
||||
}
|
||||
@@ -53,9 +73,9 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
[NonAction]
|
||||
public virtual ActionResult Attachments(string id)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Attachments);
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, nameof(Attachments));
|
||||
|
||||
Disco.Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
|
||||
return callInfo;
|
||||
}
|
||||
@@ -63,9 +83,9 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
[NonAction]
|
||||
public virtual ActionResult AttachmentOnlineUploadSession(string id)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AttachmentOnlineUploadSession);
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, nameof(AttachmentOnlineUploadSession));
|
||||
|
||||
Disco.Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
|
||||
return callInfo;
|
||||
}
|
||||
@@ -73,10 +93,10 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
[NonAction]
|
||||
public virtual ActionResult GeneratePdf(string id, string DocumentTemplateId)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.GeneratePdf);
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, nameof(GeneratePdf));
|
||||
|
||||
Disco.Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "DocumentTemplateId", DocumentTemplateId);
|
||||
Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, nameof(DocumentTemplateId), DocumentTemplateId);
|
||||
|
||||
return callInfo;
|
||||
}
|
||||
@@ -84,10 +104,10 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
[NonAction]
|
||||
public virtual ActionResult GeneratePdfPackage(string id, string DocumentTemplatePackageId)
|
||||
{
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.GeneratePdfPackage);
|
||||
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, nameof(GeneratePdfPackage));
|
||||
|
||||
Disco.Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "DocumentTemplatePackageId", DocumentTemplatePackageId);
|
||||
Web.Controllers.UserController.T4MVCAddUserIdRouteValues(callInfo, id);
|
||||
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, nameof(DocumentTemplatePackageId), DocumentTemplatePackageId);
|
||||
|
||||
return callInfo;
|
||||
}
|
||||
|
||||
@@ -132,17 +132,19 @@ namespace Disco.Web.Controllers
|
||||
{
|
||||
public readonly string _AssignmentHistory = "_AssignmentHistory";
|
||||
public readonly string _Authorization = "_Authorization";
|
||||
public readonly string _CommentsAndJobs = "_CommentsAndJobs";
|
||||
public readonly string _Flags = "_Flags";
|
||||
public readonly string _Jobs = "_Jobs";
|
||||
public readonly string _Resources = "_Resources";
|
||||
public readonly string _Subject = "_Subject";
|
||||
public readonly string Comments = "Comments";
|
||||
}
|
||||
public readonly string _AssignmentHistory = "~/Views/User/UserParts/_AssignmentHistory.cshtml";
|
||||
public readonly string _Authorization = "~/Views/User/UserParts/_Authorization.cshtml";
|
||||
public readonly string _CommentsAndJobs = "~/Views/User/UserParts/_CommentsAndJobs.cshtml";
|
||||
public readonly string _Flags = "~/Views/User/UserParts/_Flags.cshtml";
|
||||
public readonly string _Jobs = "~/Views/User/UserParts/_Jobs.cshtml";
|
||||
public readonly string _Resources = "~/Views/User/UserParts/_Resources.cshtml";
|
||||
public readonly string _Subject = "~/Views/User/UserParts/_Subject.cshtml";
|
||||
public readonly string Comments = "~/Views/User/UserParts/Comments.cshtml";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user