public void Update(LocationModel locationModelToUpdate) { _repository.UpdateLocation(LocationConverter.CreateNewLocationPlaceholder(locationModelToUpdate.Id, locationModelToUpdate.Name, locationModelToUpdate.CostRate, locationModelToUpdate.Availability)); }
public void Add(LocationModel location) { _repository.CreateLocation(LocationConverter.CreateNewLocationPlaceholder(location.Id, location.Name, location.CostRate, location.Availability)); }