public async Task <List <AgencyModel> > GetAllAgencies()
 {
     try
     {
         return(_agencyBussines.GetAllAgencies());
     }
     catch (Exception ex)
     {
         _viamLogger.Error(ex);
         return(null);
     }
 }
Example #2
0
 public async Task <OnHoldResponseModel> GetChecksOnHold([FromBody] OnHoldFiltersModels holdParameters)
 {
     try
     {
         return(new OnHoldResponseModel()
         {
             Status = new MessageResponseModel {
                 Code = MessageResponse.SUCCESS_CODE
             },
             HoldResults = _onHoldBussines.GetChecksOnHold(holdParameters)
         });
     }
     catch (Exception ex)
     {
         _viamLogger.Error(ex);
         return(new OnHoldResponseModel()
         {
             Status = new MessageResponseModel {
                 Code = MessageResponse.ERROR_CODE, Message = ex.Message
             }
         });
     }
 }