Esempio n. 1
0
        public ActionResult <CatCard> SaveCard(CatCard card)
        {
            if (card.CatCardId == null)
            {
                return(BadRequest());
            }
            CatCard added = cardDAO.SaveCard(card);

            return(Created($"/Card/{added.CatCardId}", added));
        }
        public ActionResult <CatCard> SaveCard(CatCard incomingCard)
        {
            CatCard newCard = cardDAO.SaveCard(incomingCard);

            return(Created("/api/cards/" + newCard.CatCardId, newCard));
        }
 public CatCard SaveCard(CatCard newCard)
 {
     return(cardDAO.SaveCard(newCard));
 }
Esempio n. 4
0
 public CatCard AddCard(CatCard catCard)
 {
     return(cardDAO.SaveCard(catCard));
 }