Beispiel #1
0
 /// <summary>
 /// Get ToDoList by id.
 /// </summary>
 /// <param name="toDoListId">ToDoList id.</param>
 /// <returns></returns>
 public async Task <ToDoListDto> GetToDoListById(int toDoListId)
 {
     return(await _toDoListRepo.GetById(toDoListId, _userId));
 }
 /// <summary>
 /// Gets the by identifier.
 /// </summary>
 /// <param name="listId">The list identifier.</param>
 /// <param name="userId">The user identifier.</param>
 /// <returns></returns>
 public async Task <ToDoListDto> GetById(int listId, int userId)
 {
     return(await _toDoListRepository.GetById(listId, userId));
 }