Esempio n. 1
0
        public ActionResult EditPartial(DefinitionEditViewModel definition)
        {
            WordDefinition model = definition.ToModel();

            _wordDefinitionService.Edit(ref model);
            return(PartialView("_ListItem", new DefinitionViewModel(model)));
        }
Esempio n. 2
0
 public string JqGridEdit(WordDefinitionViewModel definitionVM)
 {
     try
     {
         var model = _Mapper.Map <WordDefinition>(definitionVM);
         _wordDefinitionService.Edit(ref model);
     }
     catch (Exception ex)
     {
         return(this.BadRequestAndCollectEx(ex));
     }
     return(null);
 }