//public JsonResult CardType(int id)
        //{

        //    var result = new JsonResult();
        //    var lists = _Cardrepo.GetCardRule(id);
        //    result.Data = lists;
        //    result.JsonRequestBehavior = JsonRequestBehavior.AllowGet;
        //    return result;

        //}

        public JsonResult Delete(int id)
        {
            ////// Hit the Card database with card status Sold
            CardViewModel cardmodel = new CardViewModel();

            cardmodel.CardId = id;
            ////// This is for Unsold status _IssueRepo.UpdateCardToSoldStatus(cardmodel);

            _Cardrepo.DeleteCard(id);
            JsonResult result = new JsonResult();

            result.Data = id;
            return(result);
        }
示例#2
0
 public CGMessage DeleteCard(Card card)
 {
     return(_cardRepository.DeleteCard(card));
 }