Exemple #1
0
 public void AddOrUpdate(Profile profile, Ekreta.Mobile.Core.Models.Student student)
 {
     if (student == null)
     {
         return;
     }
     student.ProfileId = profile.RolelessId;
     this._studentRepository.AddOrUpdate(student);
 }
Exemple #2
0
 public void Delete(Ekreta.Mobile.Core.Models.Student student)
 {
     this._studentRepository.Remove(student);
     this._formteacherRepository.Remove(student.FormTeacher);
     foreach (Tutelary tutelary in student.Tutelaries)
     {
         this._tutelaryRepository.Remove(tutelary);
     }
 }