public ActionResult CreateProduct() { var viewModelProduct = new ProductModel(); var availableCategories = this._categoryRepository.GetAll(); viewModelProduct.AvailableCategories = CategoryFactory.CreateCategoryModels(availableCategories, null); return(View("Edit", viewModelProduct)); }