Exemplo n.º 1
0
 /// <summary>
 /// Get ToDoLists.
 /// </summary>
 /// <returns>
 /// Returns ToDoLists.
 /// </returns>
 public async Task <List <ToDoListDto> > GetAllToDoLists()
 {
     return(await _toDoListRepo.GetAllByUser(_userId));
 }
 /// <summary>
 /// Gets all by user.
 /// </summary>
 /// <param name="paginationParams">The pagination parameters.</param>
 /// <param name="userId">The user identifier.</param>
 /// <returns></returns>
 public async Task <PagedList <ToDoListDto> > GetAllByUser(PaginationParameters paginationParams, int userId)
 {
     return(await _toDoListRepository.GetAllByUser(paginationParams, userId));
 }