예제 #1
0
        public async Task <TaskModel> GetAsync(int taskId)
        {
            var task = await _databaseContext.Tasks.Include(x => x.Project).FirstOrDefaultAsync(t => t.Id == taskId);

            return(TaskMapper.MapTaskToTaskModel(task));
        }