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(); }
public void AddPriceHistory(PriceHistoryDto priceHistory) { unit.PriceHistories.Create(Mapper.Mapping(priceHistory)); unit.Save(); }
public void AddManager(ManagerDto manager) { unit.Managers.Create(Mapper.Mapping(manager)); unit.Save(); }