Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public ActionResult NewType()
 {
     var type = new ProductType();
     var attributes = schemaService.GetAttributes();
     var model = new NewProductTypeModel() { ProductType = type, Attributes = attributes };
     return PartialView("Types/Edit", model);
 }