Esempio n. 1
0
        public Result InsertCourseAttendance(CourseAttendance model)
        {
            try
            {
                using (var context = new AttendanceDataContext())
                {
                    context.CourseAttendances.InsertOnSubmit(model);
                    context.SubmitChanges();
                }

                return(new Result());
            }
            catch (Exception)
            {
                return(new Result(HttpStatusCode.InternalServerError, "Unable to check in"));
            }
        }
 private void detach_CourseAttendances(CourseAttendance entity)
 {
     this.SendPropertyChanging();
     entity.User = null;
 }
 partial void DeleteCourseAttendance(CourseAttendance instance);
 partial void UpdateCourseAttendance(CourseAttendance instance);
 partial void InsertCourseAttendance(CourseAttendance instance);
 private void attach_CourseAttendances(CourseAttendance entity)
 {
     this.SendPropertyChanging();
     entity.Course = this;
 }