예제 #1
0
 public IActionResult AddDog(string shelterId, [FromBody] Shelter.shared.Dog dog)
 {
     dog.ShelterId = shelterId;
     dog           = _dataAccess.AddDog(shelterId, dog);
     return(Ok(dog));
 }
예제 #2
0
 public Dog AddDog(string shelterId, Shelter.shared.Dog dog)
 {
     _context.Animals.InsertOne(dog);
     return(dog);
 }