public ActionResult <Pet> Get(int id) { try { return(Ok(_petShopService.RetrievePetById(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Pet> Get(int id) { try { return(Ok(_petShopService.RetrievePetById(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }