public async Task <IActionResult> Delete(int id, int a) { var type = await _contentsService.FindContentTypeByIdAsync(id); if (type != null) { return(View(new TypeViewModel() { Name = type.Name, Id = type.Id })); } return(NotFound()); }
public async Task <IActionResult> Delete(int id, int a) { var type = await _contentsService.FindContentTypeByIdAsync(id); if (type != null) { return(View(new TypeViewModel() { Name = type.Name, Id = type.Id })); } return(NotFound()); }