Пример #1
0
        public void updateStudentCurrentStatus(StudentCurrentStatus StudentCurrentStatus)
        {
            SMSContext sMSContext = new SMSContext();

            sMSContext.Entry(StudentCurrentStatus).State = System.Data.Entity.EntityState.Modified;
            sMSContext.SaveChanges();
        }
Пример #2
0
        public void saveStudentCurrentStatus(StudentCurrentStatus StudentCurrentStatus)
        {
            SMSContext sMSContext = new SMSContext();

            sMSContext.StudentCurrentStatuses.Add(StudentCurrentStatus);
            sMSContext.SaveChanges();
        }