internal TaskForDetailForManager getTaskForDetailForManager(int taskId) { TaskForDetailForManager taskForDetail = _context.Tasks.Where(t => t.Id == taskId).Select(t => new TaskForDetailForManager { id = t.Id, assigneeId = t.AssignerId, assigneeName = t.Assignee.Name, content = t.Description, title = t.Title, endDate = t.EndDate.Value.ToShortDateString(), startDate = t.StartDate.Value.ToShortDateString(), solutionDescription = t.SolutionDescription }).SingleOrDefault(); return(taskForDetail); }
public IActionResult getTaskDetailForManager(int taskId) { TaskForDetailForManager taskForDetail = _taskRepository.getTaskForDetailForManager(taskId); return(Json(taskForDetail)); }