private async Task <ParentTask> GetParentTask(TaskViewModel taskDetails) { return(taskDetails.ParentId == 0 ? null : await _taskManagerRepository.GetParentTask(taskDetails.ParentId)); }