Esempio n. 1
0
 public ActionResult CreateValue(AttributeValueModel model)
 {
     if (ModelState.IsValid)
     {
         var entity = model.MapTo <AttributeValue>();
         _attributeService.InsertAttributeValue(entity);
         return(AbpJson("ok"));
     }
     return(AbpJson("error"));
 }
Esempio n. 2
0
 public static AttributeValue ToAttributeValue(this AttributeValueModel model)
 {
     return(model.MapTo <AttributeValueModel, AttributeValue>());
 }