예제 #1
0
        public Student updateStudent(Student student)
        {
            // Student updatedStudent = context.Students.Where(x => x.Id == student.Id).FirstOrDefault();
            context.Update(student);
            context.SaveChanges();

            return(student);
        }
예제 #2
0
        public Donor updateDonor(Donor donor)
        {
            // Donor updatedDonor = context.Donors.Where(x => x.Id == donor.Id).FirstOrDefault();
            context.Update(donor);
            context.SaveChanges();

            return(donor);
        }