// POST api/values public void Post([FromBody] Associate value) { using (var context = new MyFirstDBContext()) { context.Set <Associate>().Add(value); context.SaveChanges(); } }
// POST api/values public void Post([FromBody] ContactInfo value) { using (var context = new MyFirstDBContext()) { context.Set <ContactInfo>().Add(value); context.SaveChanges(); } }