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); }
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); }
public ActionResult Urundetail(ProductlistDTO urun) { Urunservis.update(urun); return(View()); }