Esempio n. 1
0
 public async Task <IActionResult> CreateAnimal([FromBody] Animal animal)
 {
     try { DBService.CreateAnimal(animal); }
     catch (Exception) { return(BadRequest("Entered data is not valid!")); }
     return(Ok("Succsesfully created!"));
 }