public UserModel GetUser(string UserName, string PassWord) { TextOpertion text = new TextOpertion(); List <UserModel> list = text.GetUsers(); if (list.Count == 0) { return(null); } UserModel user = list.Where(a => a.UserName == UserName && PassWord == a.PassWord).FirstOrDefault(); return(user); }
public List <StagiaireModel> GetAllStagiaire() { TextOpertion text = new TextOpertion(); return(text.GetAllStagitre()); }