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