Пример #1
0
        public VStudent FindByStdNationalCode(string username, string password, string stdcode)
        {
            WebServiceAccountsRepository webir       = new WebServiceAccountsRepository();
            WebServiceAccount            currentuser = webir.FindByUserName(username);

            if (currentuser != null)
            {
                if (currentuser.Password == password)
                {
                    VStudentsRepository depir = new VStudentsRepository();
                    return(depir.FindBynationatcode(stdcode));
                }
                else
                {
                    return(null);
                }
            }

            else
            {
                return(null);
            }
        }