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); }
public bool DeleteAccount(string accountNumber) { IAccountDataStore accountDataStore = new AccountDataStore(); return(accountDataStore.DeleteAccount(accountNumber)); }