public ActionResult AssignToTkt(int?Id, string stat)
        {
            if (Id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Ticket ticket = db.Tickets.Find(Id);

            if (ticket == null)
            {
                return(HttpNotFound());
            }

            var userId   = User.Identity.GetUserId();
            var user     = db.Users.Find(userId);
            var userName = user.FullName;

            if (roleHelper.IsUserInSystemRole(userId, SystemRole.Admin) || roleHelper.IsUserInSystemRole(userId, SystemRole.ProjectManager))
            {
                ViewBag.Manager          = userName;
                ViewBag.AssignedToUserId = new SelectList(projHelper.UsersInRoleOnProject(ticket.ProjectId, SystemRole.Developer), "Id", "FullName", ticket.AssignedToUserId);
                ViewBag.Stats            = stat;
                return(View(ticket));
            }
            else
            {
                TempData["Message"] = "YOU ARE NOT AUTHORIZED TO ASSIGN USERS TO THIS TICKET BASED ON YOUR ASSIGNED ROLE.";
                ViewBag.Stats       = stat;
                return(RedirectToAction("Index", "Tickets"));
            }
        }