Exemple #1
0
 public bool Delete(Savings_balance savings_Balance)
 {
     try
     {
         if (savings_Balance != null)
         {
             _balanceRepository.Delete(savings_Balance);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
     return(true);
 }
Exemple #2
0
        public async Task <Savings_balance> Update(Savings_balance savings_Balance)
        {
            try
            {
                if (savings_Balance != null)
                {
                    var result = await _balanceRepository.Update(savings_Balance);

                    return(result);
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(null);
        }