public UserInClass(int userId, int classId, int classVersion, DateTime startTime, DateTime endTime, bool isStarted, bool isFinished, int classPosition, AppClass appClass, Section [] section, string user_feeling, string user_feeling_finish, bool beforeClass, DateTime shouldStart, UserInHomeWork userInHomeWork, bool isNextLesson = false, int nextLessonInReact = -20) { UserId = userId; ClassId = classId; ClassVersion = classVersion; StartTime = startTime; EndTime = endTime; IsStarted = isStarted; IsFinished = isFinished; ClassPosition = classPosition; NextLessonInReact = nextLessonInReact; AppClass = appClass; Section = section; User_Feeling = user_feeling; User_Feeling_Finish = user_feeling_finish; BeforeClass = beforeClass; ShouldStart = shouldStart; UserInHomeWork = userInHomeWork; IsNextLesson = isNextLesson; }
public int UpdateUserStartHomeWork(UserInHomeWork userInHomeWork) { DBservices db = new DBservices(); return(db.UpdateUserStartHomeWork(userInHomeWork, "ConnectionStringPerson")); }
public int UpdateHomeWorkFinishedReact(UserInHomeWork userInHomeWork) { DBservices db = new DBservices(); return(db.UpdateHomeWorkFinishedReact(userInHomeWork, "ConnectionStringPerson")); }