예제 #1
0
 public void DeleteRegistration(Guid id)
 {
     Entities.Registration registration = _context.Registration.Find(id);
     _context.Remove(registration);
 }
예제 #2
0
 public DEV_Library.Models.Registration GetRegistrationById(Guid id)
 {
     Entities.Registration registration = _context.Registration.Find(id);
     return(Mapper.MapRegistration(registration));
 }
예제 #3
0
 public void AddRegistration(DEV_Library.Models.Registration registration)
 {
     Entities.Registration newRegistration = Mapper.MapRegistration(registration);
     _context.Add(newRegistration);
 }