//APPROVE EVENT public ActionResult ApproveEvent(int paramId) { var stat = EventDataAccess.GetEventStatus(paramId); if (stat == 1) { ViewBag.EmpName = new SelectList(EventDataAccess.GetAllEmpName(), "EmpId", "EmpFullName"); return(PartialView(EventDataAccess.GetDetailEventById(paramId))); } else if (stat == 2) { return(PartialView("CloseRequestEvent", EventDataAccess.GetDetailEventById(paramId))); } else { return(PartialView()); } }