public ActionResult EditPartial(DefinitionEditViewModel definition) { WordDefinition model = definition.ToModel(); _wordDefinitionService.Edit(ref model); return(PartialView("_ListItem", new DefinitionViewModel(model))); }
public ActionResult EditPartial(int id) { WordDefinition wordDefinition = _wordDefinitionService.GetWordDefinition(id); var vm = new DefinitionEditViewModel(/*wordDefinition */) { Definition = "asd" }; //todo vm.WordTypes = GetWordTypes(wordDefinition.Id); return(PartialView("_Edit")); }