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)); }
public CatCard AddCard(CatCard catCard) { return(cardDAO.SaveCard(catCard)); }