public async Task <IHttpActionResult> Delete(int id)
        {
            ICryptoCoinBL bl   = this.blFactory.CreateCryptoCoinBL();
            var           coin = await bl.GetCryptoCoin(id);

            if (coin == null)
            {
                return(StatusCode(HttpStatusCode.NotFound));
            }
            await bl.DeleteCryptoCoin(coin);

            return(StatusCode(HttpStatusCode.OK));
        }
        public async Task <IHttpActionResult> GetById(int id)
        {
            var           coin = new CryptoData.Core.CryptoCoin();
            ICryptoCoinBL bl   = this.blFactory.CreateCryptoCoinBL();

            coin = await bl.GetCryptoCoin(id);

            if (coin == null)
            {
                return(StatusCode(HttpStatusCode.NotFound));
            }
            return(Ok(coin));
        }