public async Task <IActionResult> EditTask(int id) { var task = await tasksManager.GetTask(id); return(task != null ? (IActionResult)View(mapper.Map <EditTaskViewModel>(task)) : this.ErrorPage()); }
public async Task <IActionResult> EditTask(int id) { var task = await tasksManager.GetTask(id); return(task != null ? (IActionResult)View(mapper.Map <EditTaskViewModel>(task)) : this.ErrorPage()); }