public Student GetStudentForm3(string id = "")
        {
            StudentRepo repo = new StudentRepo();

            Validate(id);

            if (Errors.Count == 0)
            {
                return(repo.RetrieveById(id));
            }

            return(repo.RetrieveById(id));
        }
示例#2
0
        public Student GetStudent(string id)
        {
            StudentRepo repo = new StudentRepo();

            s = repo.RetrieveById(id);

            return(s);
        }
        public Student GetStudent(string id = "")
        {
            StudentRepo repo = new StudentRepo();

            return(repo.RetrieveById(id));
        }