Exemple #1
0
        public ActionResult SubmitWorkOrder(string PotHoles, string Users, WorkOrder order)
        {
            if (!Request.IsAuthenticated || User.IsInRole("citizen") || User.IsInRole("crew_member"))
            {
                return(RedirectToAction("Index"));
            }

            order.LeaderId = potholeDAL.GetUserId(User.Identity.Name);
            potholeDAL.ScheduleWorkOrder(order, Users, PotHoles);
            return(RedirectToAction("WorkOrder"));
        }