public async Task <ActionResult> Removed() { try { var userId = User.Identity.GetUserId <int>(); var result = await _taskService.GetAllRemovedTasksAsync(userId); if (result != null) { return(View(result)); } else { return(JError()); } } catch (Exception) { return(JError()); } }