示例#1
0
 public void Update(LocationModel locationModelToUpdate)
 {
     _repository.UpdateLocation(LocationConverter.CreateNewLocationPlaceholder(locationModelToUpdate.Id,
                                                                               locationModelToUpdate.Name,
                                                                               locationModelToUpdate.CostRate, locationModelToUpdate.Availability));
 }
示例#2
0
 public void Add(LocationModel location)
 {
     _repository.CreateLocation(LocationConverter.CreateNewLocationPlaceholder(location.Id, location.Name,
                                                                               location.CostRate, location.Availability));
 }