public ActionResult ApproveAllRequests(string id) { RequestDAO requestDAO = new RequestDAO(); if (!requestDAO.ApproveAllRequests(id)) { SetFlash(Enums.FlashMessageType.Error, "Something went wrong!"); return(RedirectToAction("ReviewStationeryRequest", "DepartmentHead")); } SetFlash(Enums.FlashMessageType.Success, "Great! You've successfully approved all requests"); return(RedirectToAction("ReviewStationeryRequest", "DepartmentHead")); }