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")); } }