コード例 #1
0
        public HttpResponseMessage Delete(int id)
        {
            RegistrationDb db = new RegistrationDb();

            return(db.DeleteRegistration(id));
        }
コード例 #2
0
        public HttpResponseMessage Put(int id, [FromBody] Register body)
        {
            RegistrationDb db = new RegistrationDb();

            return(db.PutRegistration(id, body));
        }
コード例 #3
0
        public Task <List <Registration> > Get(int id)
        {
            RegistrationDb db = new RegistrationDb();

            return(db.GetRegistration(id));
        }
コード例 #4
0
        public HttpResponseMessage Post([FromBody] Register body)
        {
            RegistrationDb db = new RegistrationDb();

            return(db.postRegistration(body));
        }
コード例 #5
0
        public Task <List <Registration> > Get()
        {
            RegistrationDb db = new RegistrationDb();

            return(db.GetRegistrationsAsync());
        }