public void DeleteRegistration(Guid id) { Entities.Registration registration = _context.Registration.Find(id); _context.Remove(registration); }
public DEV_Library.Models.Registration GetRegistrationById(Guid id) { Entities.Registration registration = _context.Registration.Find(id); return(Mapper.MapRegistration(registration)); }
public void AddRegistration(DEV_Library.Models.Registration registration) { Entities.Registration newRegistration = Mapper.MapRegistration(registration); _context.Add(newRegistration); }