Example #1
0
        public ActionResult CancelAuthorization()
        {
            if (!LoginService.IsAuthorizedRoles("head"))
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            string deptID = loginService.StaffFromSession.DepartmentID;

            if (departmentService.CancelAuth(deptID))
            {
                Debug.WriteLine("Auth for" + deptID + "canceled");
            }


            return(RedirectToAction("DelegateAuthority"));
        }