Пример #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);
 }