Esempio n. 1
0
 public TodoListDTO MapperToDTO(TodoList todoList) => todoList != null ? new TodoListDTO(todoList.Id, todoList.Name, todoList.Done, _categoryMapper.MapperToDTO(todoList.Category)) : null;
Esempio n. 2
0
        public CategoryDTO Add(CategoryDTO categoryDTO)
        {
            var category = _categoryMapper.MapperToEntity(categoryDTO);

            return(_categoryMapper.MapperToDTO(_categoryService.Add(category)));
        }