public async Task <IActionResult> Edit(Guid id)
        {
            var model = await Task.Run(() => _moduleTypeFacade.GetAdminModel(id));

            if (model == null)
            {
                return(NotFound());
            }
            return(View(model));
        }
示例#2
0
        public IActionResult AdminEdit(Guid id)
        {
            var model = _moduleTypeFacade.GetAdminModel(id);

            if (model == null)
            {
                return(NotFound());
            }
            return(Ok(model));
        }