public List <RequisitionDetail> RetrieveDisbursementList([FromBody] Requisition r1) { string deptId = r1.DepartmentId; long collectiondate = (long)r1.CollectionDate; List <RequisitionDetail> dlist = scservice.RetrieveDisbursementList(deptId, collectiondate); if (dlist == null || dlist.Count == 0) { throw new Exception("Sorry, there is no Disbursement matching the provided date for this department."); } return(dlist); }