Example #1
0
 public void Post([FromBody] Cat cat)
 {
     _db.Cats.Add(cat);
     _db.SaveChanges();
 }
 public void Post([FromBody] Dog dog)
 {
     _db.Dogs.Add(dog);
     _db.SaveChanges();
 }