public QuoteData Create(QuoteData quote) { var newQuote = DB.Quotes.Add(quote); DB.SaveChanges(); return(newQuote.Entity); }
public CryptoData Create(CryptoData crypto) { var newCrypto = DB.Cryptos.Add(crypto); DB.SaveChanges(); return(newCrypto.Entity); }
public bool Save() { return(_context.SaveChanges() >= 0); }