public void updateStudentCurrentStatus(StudentCurrentStatus StudentCurrentStatus) { SMSContext sMSContext = new SMSContext(); sMSContext.Entry(StudentCurrentStatus).State = System.Data.Entity.EntityState.Modified; sMSContext.SaveChanges(); }
public void saveStudentCurrentStatus(StudentCurrentStatus StudentCurrentStatus) { SMSContext sMSContext = new SMSContext(); sMSContext.StudentCurrentStatuses.Add(StudentCurrentStatus); sMSContext.SaveChanges(); }