public string CreateTenantHeadOfficeWarehouse(string tenantId, string companyId) { var warehouse = new Warehouse { Id = Guid.NewGuid().ToString(), Created = DateTime.Now, Modified = DateTime.Now, CreatedBy = null, ModifiedBy = null, Active = true, Code = "HO", Name = StaticWarehouse.HeadOffice, Type = WarehouseType.HeadOffice, TenantId = tenantId, CompanyId = companyId }; _warehouseRepository.CreateTenantWarehouse(warehouse); _warehouseRepository.Commit(); return(warehouse.Id); }