Пример #1
0
        public ActionResult ApproveLeavesByAdmin(int id)
        {
            AdminRole toApproveLeaveByAdmin = new AdminRole();
            int       i = toApproveLeaveByAdmin.ApproveLeavesByAdmin(id);

            if (i > 0)
            {
                return(RedirectToAction("ViewLeavesByAdmin", "AdminRole"));
            }
            else
            {
                return(RedirectToAction("ViewLeavesByAdmin", "AdminRole"));
            }
        }