Example #1
0
        public async Task <IActionResult> EditTask(int id)
        {
            var task = await tasksManager.GetTask(id);

            return(task != null ? (IActionResult)View(mapper.Map <EditTaskViewModel>(task)) : this.ErrorPage());
        }