public HttpResponseMessage Delete(int id) { RegistrationDb db = new RegistrationDb(); return(db.DeleteRegistration(id)); }
public HttpResponseMessage Put(int id, [FromBody] Register body) { RegistrationDb db = new RegistrationDb(); return(db.PutRegistration(id, body)); }
public Task <List <Registration> > Get(int id) { RegistrationDb db = new RegistrationDb(); return(db.GetRegistration(id)); }
public HttpResponseMessage Post([FromBody] Register body) { RegistrationDb db = new RegistrationDb(); return(db.postRegistration(body)); }
public Task <List <Registration> > Get() { RegistrationDb db = new RegistrationDb(); return(db.GetRegistrationsAsync()); }