예제 #1
0
        public void update(ProductlistDTO urun)
        {
            Products entty = Product.Bul(urun.ProductID);

            entty.name          = urun.name;
            entty.CategoryID    = urun.CategoryID;
            entty.Description   = urun.Description;
            entty.discount_rate = urun.discount_rate;
            entty.İmageurl      = urun.İmageurl;
            entty.Cost          = urun.Cost;
            entty.Price         = urun.Price;

            Product.Update(entty);
        }
예제 #2
0
        public ProductlistDTO Find(int id)
        {
            Products       urun     = Product.Bul(id);
            ProductlistDTO Rproduct = new ProductlistDTO {
                ProductID     = urun.ProductID,
                CategoryID    = urun.CategoryID,
                name          = urun.name,
                Description   = urun.Description,
                Store         = urun.Store,
                Price         = urun.Price,
                discount_rate = urun.discount_rate,
                Cost          = urun.Cost,
                İmageurl      = urun.İmageurl
            };

            return(Rproduct);
        }
예제 #3
0
 public ActionResult Urundetail(ProductlistDTO urun)
 {
     Urunservis.update(urun);
     return(View());
 }