Пример #1
0
        public Transaction Create(Transaction transaction)
        {
            transaction = db.Transactions.Add(transaction).Entity;
            db.SaveChanges();

            return(transaction);
        }
Пример #2
0
 public Tag Create(Tag tag)
 {
     tag = db.Tags.Add(tag).Entity;
     db.SaveChanges();
     return(tag);
 }