Esempio n. 1
0
 /// <summary>
 /// Determines whether two object instances are equal.
 /// </summary>
 /// <param name="obj">The object to compare with the current object.</param>
 /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns>
 public override bool Equals(object obj)
 {
     if ((obj == null) || !this.GetType().Equals(obj.GetType()))
     {
         return(false);
     }
     else
     {
         StudentLecture sl = (StudentLecture)obj;
         return(LectureId == sl.LectureId &&
                StudentId == sl.StudentId &&
                Attendance == sl.Attendance);
     }
 }
Esempio n. 2
0
 public StudentDetailAttendanceHistoryViewModel(PageService pageService, StudentLecture studentLecture)
 {
     _pageService   = pageService;
     StudentLecture = studentLecture;
     RolesCommand   = new Command(async() => await _pageService.PushAsync(new RolesPage()));
 }
Esempio n. 3
0
 public void Post([FromBody] StudentLecture studentLecture)
 {
     repository.Create(studentLecture);
 }