Пример #1
0
 /// <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 <ToDoItemDto> > GetAllByUser(PaginationParameters paginationParams, int userId)
 {
     return(await _toDoItemRepository.GetAllByUser(paginationParams, userId));
 }
Пример #2
0
 /// <summary>
 /// Get ToDoItems.
 /// </summary>
 /// <returns>
 /// Returns ToDoItems.
 /// </returns>
 public async Task <List <ToDoItemDto> > GetAllToDoItems()
 {
     return(await _toDoItemRepo.GetAllByUser(_userId));
 }