public void SetForm(AddFromInventory form) { _form = form; _form.ProductCategories = _productCategoryRepository.GetAll(); _form.Inventories = _inventoryRepository.GetAll(); }