public TodoListDTO MapperToDTO(TodoList todoList) => todoList != null ? new TodoListDTO(todoList.Id, todoList.Name, todoList.Done, _categoryMapper.MapperToDTO(todoList.Category)) : null;
public CategoryDTO Add(CategoryDTO categoryDTO) { var category = _categoryMapper.MapperToEntity(categoryDTO); return(_categoryMapper.MapperToDTO(_categoryService.Add(category))); }