public async Task <ActionResult> AssignTicket(int ticketId, string Developers)
        {
            await ticketHelper.AssignUserToTicket(Developers, ticketId);

            TempData["Message"] = "Ticket Assigned.";
            if (User.IsInRole("Admin"))
            {
                return(RedirectToAction("Dashboard", "Admin"));
            }
            return(RedirectToAction("Index", "ProjectManager"));
        }
Example #2
0
 public ActionResult AssignUserToTicket(int id, string SubmitterId)
 {
     if (ModelState.IsValid)
     {
         TicketHelper.AssignUserToTicket(db, id, SubmitterId);
         return(RedirectToAction("Detail", new { id }));
     }
     ViewBag.SubmitterId = new SelectList(UserHelper.AllUsersInRole("Developer"), "Id", "Email");
     return(View());
 }