Пример #1
0
        //Search for transaction
        // Currently not working for Discover Database because of no primary key
        //public Disc GetTransactionDisc(int id)
        //{
        //    Disc disc;
        //    return disc;
        //}

        public string UpdateTransactionDisc(DiscInfo objDisc)
        {
            _db.Discs.Update(objDisc);
            _db.SaveChanges();
            return("Updated successfully");
        }
Пример #2
0
 public string DeleteTransactionDisc(DiscInfo objDisc)
 {
     _db.Remove(objDisc);
     _db.SaveChanges();
     return("Removed successfully");
 }
Пример #3
0
 // Insert Transactions
 public string CreateDisc(DiscInfo objDisc)
 {
     _db.Discs.Add(objDisc);
     _db.SaveChanges();
     return("Saved Successfully");
 }