示例#1
0
        Product IService1.GetProductById(string id)
        {
            var product = _bll.GetProductById(Int32.Parse(id));

            return(new Product
            {
                Id = product.Id,
                CategoryId = product.CategoryId,
                ManufacturerId = product.ManufacturerId,
                Name = product.Name,
                Description = product.Description,
                Price = product.Price,
                Keywords = product.Keywords,
                Quantity = product.Quantity
            });
        }