Пример #1
0
        public ActionResult EditPartial(DefinitionEditViewModel definition)
        {
            WordDefinition model = definition.ToModel();

            _wordDefinitionService.Edit(ref model);
            return(PartialView("_ListItem", new DefinitionViewModel(model)));
        }
Пример #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);
 }