public ActionResult EditType(string name) { var productType = schemaService.GetProductType(name); var attributes = schemaService.GetAttributes(); var model = new NewProductTypeModel() { Attributes = attributes, ProductType = productType }; return PartialView("Types/Edit", model); }
public ActionResult NewType() { var type = new ProductType(); var attributes = schemaService.GetAttributes(); var model = new NewProductTypeModel() { ProductType = type, Attributes = attributes }; return PartialView("Types/Edit", model); }