public HttpResponseMessage DeleteAccount(string accountNo)
        {
            bool retVal = false;
            HttpResponseMessage response         = new HttpResponseMessage(HttpStatusCode.BadRequest);
            IAccountDataStore   accountDataStore = new AccountDataStore();

            retVal = accountDataStore.DeleteAccount(accountNo);
            if (retVal == true)
            {
                response = Request.CreateResponse(HttpStatusCode.OK);
            }

            return(response);
        }
Exemple #2
0
        public bool DeleteAccount(string accountNumber)
        {
            IAccountDataStore accountDataStore = new AccountDataStore();

            return(accountDataStore.DeleteAccount(accountNumber));
        }