public BlockRates SaveBlockRates(long blocks, long difficulty) { BlockRatesDac dac = new BlockRatesDac(); BlockRates rates = new BlockRates(); rates.Blocks = blocks; rates.Difficulty = difficulty; rates.Time = Time.EpochTime; dac.Insert(rates); return(rates); }
public BlockRates SelectById(long id) { BlockRatesDac dac = new BlockRatesDac(); return(dac.SelectById(id)); }
public bool IsExist(long id) { BlockRatesDac dac = new BlockRatesDac(); return(dac.IsExisted(id)); }
public void Update(BlockRates entity) { BlockRatesDac dac = new BlockRatesDac(); dac.Update(entity); }
public void Delete(long id) { BlockRatesDac dac = new BlockRatesDac(); dac.Delete(id); }
public List <BlockRates> SelectAll() { BlockRatesDac dac = new BlockRatesDac(); return(dac.SelectAll()); }