public IActionResult CreateDog([FromBody] shared.Dog dog) { _dataAccess.CreateDog(dog); return(Ok()); }
//[Authorize] //Create a dog public IActionResult DoCreateDog(Shelter.Shared.Dog dog) { Animal createdAnimal = _dataAccess.CreateDog(dog); return(createdAnimal == default(Shared.Animal) ? (IActionResult)NotFound("No animal found with these parameters") : Ok(createdAnimal)); }