示例#1
0
 public float getServiceCharge(string AccountType)
 {
     try
     {
         return(_repos.getServiceCharges(AccountType));
     }
     catch (NullReferenceException e)
     {
         throw e;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public IActionResult getServiceCharges()
 {
     _log4net.Info("Service Charges logged");
     try
     {
         var ob = rulesRepository.getServiceCharges();
         if (ob == null)
         {
             return(NotFound());
         }
         return(Ok(ob));
     }
     catch (Exception)
     {
         return(BadRequest());
     }
 }