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