Example #1
0
 public async Task <IActionResult> DeleteTask(int taskId)
 => await tasksManager.DeleteTask(taskId)
         ? (IActionResult)RedirectToAction("Index", "Tasks").PushAlert("Task was deleted")
         : this.ErrorPage();