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); } }
public int DeleteTax(int id) { return(_iTaxRepository.DeleteTax(id)); }