public ActionResult UserDetails(int userId)
{
this.ViewBag.ManagerName = this.userRepository.GetById(userId).UserName;
this.ViewBag.ManagerId = userId;
IList<HumanTask> humanTasks = this.taskProcessor.GetTasksList(userId).ToList();
IList<TaskViewModel> model =
humanTasks.Select(
task =>
new TaskViewModel
{
Task = task,
CreatorName =
task.CreatorId.HasValue
? this.userRepository.GetById(task.CreatorId.Value).UserName
: string.Empty
}).ToList();
return this.View(model);
}