public StudentViewModel() { _deleteCommand = new Command(OnDelete); _updateCommand = new Command(OnUpdate); _addCommand = new Command(OnAdd); _pageChangeCommand = new Command(OnPageChange); _firstpage = 1; _secondpage = 2; _thirdpage = 3; _prev = "‹"; _next = ""; _firstcolor = _secondcolor = _thirdcolor = Brushes.Black; _total = (int)studentDAO.Count(); _pageSize = _total / _limit; _count = $"{_total} adet kayıt var"; List.Clear(); foreach (var item in studentDAO.Find(1, _limit, _pageSize)) { List.Add(item); } //BindData(); }
public IEnumerable <Student> GetAllStudents() { return(StudentRepo.Find()); }
public static Student Find(Guid?id = null, string email = null) { return(StudentDAO.Find(id, email)); }
public static Student FindLoggedUser() { return(StudentDAO.Find(email: User.Logged.Email)); }
public IEnumerable <Student> GetAllEtudiants() { return(studentRepo.Find()); }