示例#1
0
 public bool DeleteTax(int id)
 {
     try
     {
         Tax tax = _taxRepository.GetTax().FirstOrDefault(x => x.Id == id);
         _taxRepository.DeleteTax(tax);
         return(true);
     }
     catch (Exception ex)
     {
         fault.Result       = false;
         fault.ErrorMessage = "Error in DeleteProducts method";
         fault.ErrorDetails = ex.ToString();
         throw new FaultException <FaultData>(fault);
     }
 }
示例#2
0
 public int DeleteTax(int id)
 {
     return(_iTaxRepository.DeleteTax(id));
 }