public async Task <IActionResult> GetTodoById(int id) { if (!ModelState.IsValid) { return(StatusCode(400)); } var dto = await _manager.GetTodoById(id); var response = _mapper.Map <TodoGetListItemResponse>(dto); return(Ok(response)); }