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

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