public IActionResult DictionarySubObjEdit(DictionarySubObjEdit obj) { var dictSubObj = _dictionaryService.DictionarySubObjEdit(obj); var DictObj = _dictionaryService.GetDictionaryObject(dictSubObj.DictionaryObjectId); var Dic = _dictionaryService.GetDictionary(DictObj.DictionaryId); var model = new DictionarySubObjEdit() { DictionaryObjects = _dictionaryService.GetDictionaryObjectList(Dic.DictionaryName), DictionaryObjID = dictSubObj.DictionaryObjectId.ToString(), DictionarySubObjID = dictSubObj.DictionarySubObjectId, Name = dictSubObj.DictionarySubObjectName }; return(View(model)); }