public Models.CardValidateResponse CardCheck([FromBody] Models.CardInfo _cardInfo) { Models.CardValidateResponse cardValidateResponse = new Models.CardValidateResponse(); _2C2P.CardValidators.CheckCard obj = new CardValidators.CheckCard(_cardInfo.CardNumber.ToString(), _cardInfo.ValidMonth, _cardInfo.ValidYear); cardValidateResponse.CardName = obj.Response.CardType; return(cardValidateResponse); }
public _2C2P.CardAPI.Models.CardValidateResponse GetCardDetails(string cardNumber, int month, int year) { Models.CardValidateResponse cardValidateResponse = new Models.CardValidateResponse(); _2C2P.CardValidators.CheckCard obj = new CardValidators.CheckCard(cardNumber, month, year); cardValidateResponse.CardName = obj.Response.CardType; return(cardValidateResponse); }