public void AddCar(Car car) { try { dataBaseRepository.AddCar(car); } catch (Exception ex) { SaveException.Log("webErrors.txt", ex); throw new WebFaultException <string>("Sorry something went wrong when trying to add a car to Database", HttpStatusCode.InternalServerError); } }
public void AddCar(Car car) { dataBaseRepository.AddCar(car); }