public IActionResult Get() { try { return(Json(_todolistRepository.GetAll())); } catch (Exception ex) { return(BadRequest(ex.ToString())); } }
public IEnumerable <ToDoList> GetAllTaskUserId(string userId) { return(_ToDoListRepository.GetAll().Where(x => x.ApplicationUserId == userId)); }
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)); }