Ejemplo n.º 1
0
 public Warehouse CreateObject(Warehouse warehouse, IWarehouseItemService _warehouseItemService, IItemService _itemService)
 {
     warehouse.Errors = new Dictionary <String, String>();
     if (_validator.ValidCreateObject(warehouse, this))
     {
         warehouse = _repository.CreateObject(warehouse);
         // warehouse item will be created upon calling WarehouseItemService.FindOrCreateObject()
     }
     return(warehouse);
 }