Exemplo n.º 1
0
 public static void insertSchool(SchoolBO objSchool)
 {
     if (!objSchool.Name.Equals(""))
     {
         SchoolDAL.insertSchool(objSchool);
     }
 }
Exemplo n.º 2
0
        public StudentModel Savestudent(StudentModel e)
        {
            SchoolDAL salesDal = new SchoolDAL();

            salesDal.Studentes.Add(e);
            salesDal.SaveChanges();
            return(e);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            School school = new School
            {
                SchoolName = "teste",
                Adress     = "Rua teste, 02"
            };
            SchoolDAL schoolDAL = new SchoolDAL();

            Console.WriteLine($"Registrando escola {school}");
            schoolDAL.RegisterSchool(school);
        }
Exemplo n.º 4
0
 public static ArrayList getSchoolsByUserId(string Id)
 {
     return(SchoolDAL.getSchoolsByUserId(Id));
 }
Exemplo n.º 5
0
 public static List <School> getSchoolTop5(string UserId)
 {
     return(SchoolDAL.getSchoolTop5(UserId));
 }
Exemplo n.º 6
0
 public static SchoolBO getSchoolBySchoolId(string SchoolId)
 {
     return(SchoolDAL.getSchoolBySchoolId(SchoolId));
 }
Exemplo n.º 7
0
 public static List <School> getAllSchoolList()
 {
     return(SchoolDAL.getAllSchoolList());
 }
Exemplo n.º 8
0
 public static void updateSchool(SchoolBO objSchool)
 {
     SchoolDAL.updateSchool(objSchool);
 }
Exemplo n.º 9
0
 public static void deleteSchool(string SchoolId)
 {
     SchoolDAL.deleteSchool(SchoolId);
 }
Exemplo n.º 10
0
        public List <StudentModel> GetStudents()
        {
            SchoolDAL scooldal = new SchoolDAL();

            return(scooldal.Studentes.ToList());
        }