public void AddProduct(ProductDto product)
 {
     unit.Products.Create(Mapper.Mapping(product));
     unit.Save();
 }
 public void AddClient(ClientDto client)
 {
     unit.Clients.Create(Mapper.Mapping(client));
     unit.Save();
 }
 public void AddOperation(OperationDto operation)
 {
     unit.Operations.Create(Mapper.Mapping(operation));
     unit.Save();
 }
Exemple #4
0
 public void AddPriceHistory(PriceHistoryDto priceHistory)
 {
     unit.PriceHistories.Create(Mapper.Mapping(priceHistory));
     unit.Save();
 }
Exemple #5
0
 public void AddManager(ManagerDto manager)
 {
     unit.Managers.Create(Mapper.Mapping(manager));
     unit.Save();
 }