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

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