private Entities.Crypto.Transaction GetEntity(Contracts.CryptoBits.Transaction apiInfo)
 {
     return(_objectHelper.CreateEntity <Contracts.CryptoBits.Transaction, Entities.Crypto.Transaction>(apiInfo));
 }
        public bool AddTransaction(Contracts.CryptoBits.Transaction newTransaction)
        {
            var entity = GetEntity(newTransaction);

            return(AddTransactionToDB(entity));
        }
        public bool UpdateTransaction(Contracts.CryptoBits.Transaction transaction)
        {
            var entity = GetEntity(transaction);

            return(_repo.UpdateTransaction(entity).Result);
        }