/// <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); } }
public StudentDetailAttendanceHistoryViewModel(PageService pageService, StudentLecture studentLecture) { _pageService = pageService; StudentLecture = studentLecture; RolesCommand = new Command(async() => await _pageService.PushAsync(new RolesPage())); }
public void Post([FromBody] StudentLecture studentLecture) { repository.Create(studentLecture); }