public void RemoveCustomer(CustomerRequest customerRequest) { try { dataBaseRepository.RemoveCustomer(customerRequest); } catch (FaultException ex) { throw new WebFaultException <string>(ex.Reason.ToString(), HttpStatusCode.BadRequest); } catch (Exception ex) { SaveException.Log("webErrors.txt", ex); throw new WebFaultException <string>("Sorry something went wrong when trying to remove customer from Database", HttpStatusCode.InternalServerError); } }
public void RemoveCustomer(CustomerRequest customerRequest) { dataBaseRepository.RemoveCustomer(customerRequest); }