public MResponse ApproveDisbursement(string deptId) { DisbursementDAO dao = new DisbursementDAO(); return(new MResponse() { Success = dao.ApproveDisbursement(deptId) }); }
public ActionResult ApproveDisbursement() { OutstandingDAO outstandingDAO = new OutstandingDAO(); string deptId = GetDeptId(Session["username"].ToString()); //foreach(var ir in itemRequestDAO.GetDisburseItems(deptId)) //{ // outstandingDAO.AddItemRequest(ir); // requestDAO.UpdateDisbursedDate(ir); //} DisbursementDAO dao = new DisbursementDAO(); dao.ApproveDisbursement(deptId); return(RedirectToAction("Disbursement")); }