public void Update(DalProduct e)
 {
     var product = context.Set<Product>().Where(m => m.Id == e.Id).FirstOrDefault();
     product.Auction_Cost = e.Auction_Cost;
     product.AuctionStart = e.AuctionStart;
     product.AuctionEnd = e.AuctionEnd;
     product.Seller_Id = e.Seller_Id;
     product.Buyer_Id = e.Buyer_Id;
     product.Description = e.Description;
 }
 public void Create(DalProduct e)
 {
     var product = new Product()
     {
         Id = e.Id,
         Auction_Cost = e.Auction_Cost,
         AuctionStart = e.AuctionStart,
         AuctionEnd = e.AuctionEnd,
         Seller_Id = e.Seller_Id,
         Customer_Id = e.Customer_Id,
         Description = e.Description
     };
     context.Set<Product>().Add(product);
 }
 public void Delete(DalProduct e)
 {
     context.Set<Product>().Remove(context.Set<Product>().Where(m => m.Id == e.Id).FirstOrDefault());
 }