public IActionResult Index(string userDisplayName) { CreateWorkItemModel model = new CreateWorkItemModel(); model.AffectedUser = userDisplayName; return(View(model)); }
public ActionResult CreateSR(CreateWorkItemModel workitem) { return(createForm("https://service.aau.dk/ServiceRequest/New/", workitem)); }
public ActionResult CreateIR(CreateWorkItemModel workitem) { return(createForm("https://service.aau.dk/Incident/New/", workitem)); }
protected ActionResult createForm(string url, CreateWorkItemModel model) { string descriptionConverted = model.AffectedUser.Replace("\n", "\\n").Replace("\r", "\\r"); return(Content(createRedirectCode(ControllerContext.HttpContext.User.Identity.Name, model.AffectedUser, model.Title, descriptionConverted, url), "text/html")); }