public ActionResult Post([FromBody] Pet value) { if (value.ShelterId <= 0) { return(NotFound("Please Specify shelter")); } if (string.IsNullOrWhiteSpace(value.Name)) { return(NotFound("This pet needs a name")); } _petService.AddPetToShelter(new PetDto() { MedicalCondition = value.MedicalCondition, Name = value.Name, Photo = value.Photo, Race = value.Race, ShelterId = value.ShelterId }); return(Ok(value)); }