Example #1
0
 public IActionResult Get()
 {
     try
     {
         return(Json(_todolistRepository.GetAll()));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.ToString()));
     }
 }
Example #2
0
 public IEnumerable <ToDoList> GetAllTaskUserId(string userId)
 {
     return(_ToDoListRepository.GetAll().Where(x => x.ApplicationUserId == userId));
 }
Example #3
0
 public List <ToDoList> GetAll(int userId)
 {
     return(_toDoListRepository.GetAll(userId).ToList());
 }
 public async Task <IEnumerable <ToDoListVM> > GetAll(string Id, int Status)
 {
     return(await _toDoListRepository.GetAll(Id, Status));
 }