public bool AddCryptoValue(Contracts.CryptoBits.CryptoValue cryptoValue) { var entity = GetEntity(cryptoValue); var result = _repo.AddCryptoValue(entity); if (result.IsCompleted) { return(true); } else { return(false); } }
private Entities.Crypto.CryptoValue GetEntity(Contracts.CryptoBits.CryptoValue cryptoValue) { return(_objectHelper.CreateEntity <Contracts.CryptoBits.CryptoValue, Entities.Crypto.CryptoValue>(cryptoValue)); }
public bool DeleteCryptoValue(Contracts.CryptoBits.CryptoValue cryptoValue) { var entity = GetEntity(cryptoValue); return(_repo.DeleteCryptoValue(entity).Result); }