Пример #1
0
        public Product GetProductById(int id)
        {
            DAL.Entity.Product product       = _dal.GetProductById(id);
            BLL.Models.Product productResult = null;

            productResult = new BLL.Models.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
            };
            return(productResult);
        }