public ActionResult Create(string detail, string title, string userId, int projectId, DateTime deadline) { if (ModelState.IsValid) { TaskHelper.Add(detail, title, userId, projectId, deadline); UserManager.AddUserToRole(userId, "Developer"); return(Redirect("../Projects")); } return(Redirect("../Projects")); }