public async Task <IActionResult> Edit(Guid id) { var model = await Task.Run(() => _moduleTypeFacade.GetAdminModel(id)); if (model == null) { return(NotFound()); } return(View(model)); }
public IActionResult AdminEdit(Guid id) { var model = _moduleTypeFacade.GetAdminModel(id); if (model == null) { return(NotFound()); } return(Ok(model)); }