public QuoteData Create(QuoteData quote)
        {
            var newQuote = DB.Quotes.Add(quote);

            DB.SaveChanges();

            return(newQuote.Entity);
        }
示例#2
0
        public CryptoData Create(CryptoData crypto)
        {
            var newCrypto = DB.Cryptos.Add(crypto);

            DB.SaveChanges();

            return(newCrypto.Entity);
        }
示例#3
0
 public bool Save()
 {
     return(_context.SaveChanges() >= 0);
 }