    public GetTasksOutput GetTasks(GetTasksInput input)
    {
        //Called specific GetAllWithPeople method of task repository.
        var tasks = _taskRepository.GetAllWithPeople(input.AssignedPersonId, input.State);

        //Used AutoMapper to automatically convert List&lt;Task&gt; to List&lt;TaskDto&gt;.
        return new GetTasksOutput
                {
                    Tasks = Mapper.Map&lt;List&lt;TaskDto&gt;&gt;(tasks)
                };
    }
        
    public void UpdateTask(UpdateTask