Beispiel #1
0
        public HttpResponseMessage IBanValidation(IBAN_Parameter objiban)
        {
            var                   transaction = new TransactionalInformation();
            BicIbanApiModel       BicIBan     = new BicIbanApiModel();
            List <Bic_Iban_Codes> data        = docDataService.CheckIban(objiban, connectionString, SessionToken, out transaction);

            BicIBan.BicIban = data;
            if (transaction.ReturnStatus)
            {
                return(Request.CreateResponse <BicIbanApiModel>(HttpStatusCode.OK, BicIBan));
            }

            var badResponse = Request.CreateResponse <BicIbanApiModel>(HttpStatusCode.BadRequest, BicIBan);

            return(badResponse);
        }