コード例 #1
0
        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);
        }
コード例 #2
0
        public List <StagiaireModel> GetAllStagiaire()
        {
            TextOpertion text = new TextOpertion();

            return(text.GetAllStagitre());
        }