/// <summary> /// Retrieve all To-do items from the repository. /// </summary> /// <returns>Enumerable of all To-do items</returns> public async Task <IEnumerable <ToDoItemVm> > GetAllToDoItems() { var result = await _todoRepo.GetAll(); return(_mapper.Map <IEnumerable <ToDoItemVm> >(result)); }
public IEnumerable <ToDoItem> GetAllToDoItems(int id) { return(_toDoItemRepository.GetAll()); }
public IEnumerable <ToDoItem> GetAllItems() //if it doesn't work add the id { return(_toDoItemRepository.GetAll()); }