コード例 #1
0
ファイル: ProductService.cs プロジェクト: hakanozcn/Projeler
        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);
        }