Ejemplo n.º 1
0
        public void DeleteAuction(tbl_Auction auction)
        {
            DealDoubeDashContext context = new DealDoubeDashContext();

            context.Entry(auction).State = System.Data.Entity.EntityState.Deleted;

            context.SaveChanges();
        }
Ejemplo n.º 2
0
        public void SaveEdit(tbl_Auction auction)
        {
            DealDoubeDashContext context = new DealDoubeDashContext();

            context.Entry(auction).State = System.Data.Entity.EntityState.Modified;

            context.SaveChanges();
        }
Ejemplo n.º 3
0
        public void SaveAuction(tbl_Auction auction)
        {
            DealDoubeDashContext context = new DealDoubeDashContext();

            context.Auctions.Add(auction);

            context.SaveChanges();
        }
Ejemplo n.º 4
0
        public tbl_Auction EditAuction(int ID)
        {
            DealDoubeDashContext context = new DealDoubeDashContext();

            return(context.Auctions.Find(ID));
        }
Ejemplo n.º 5
0
        public List <tbl_Auction> Listing()
        {
            DealDoubeDashContext context = new DealDoubeDashContext();

            return(context.Auctions.ToList());
        }