public ActionResult <CatCard> GetKittyCat(int id)
        {
            CatCard card = cardDAO.GetCard(id);

            if (card != null)
            {
                return(Ok(card));
            }
            else
            {
                return(NotFound());
            }
        }
Example #2
0
        public ActionResult <CatCard> FindCard(int id)
        {
            CatCard c = cardDAO.GetCard(id);

            if (c == null)
            {
                return(NotFound("Card not found"));
            }
            return(Ok(c));
        }
 public CatCard GetById(int Id)
 {
     return(cardDAO.GetCard(Id));
 }