public IHttpActionResult UpdatePet(PetUpdateMessage message) { var pets = new Zealous.Domain.Pets(); var model = pets.UpdatePet(message); if (model != null) { return Ok(model); } return NotFound(); }
public IHttpActionResult Get(string id) { Guid guid = Guid.Empty; if (Guid.TryParse(id, out guid)) { var pets = new Zealous.Domain.Pets().GetPets(guid); if(pets.Count() > 0) return Ok(pets); return NotFound(); } return BadRequest(); }