productmanager.cs

来自「简单手表销售管理(三层开发)源码」· CS 代码 · 共 32 行

CS
32
字号
using System;
using System.Collections.Generic;
using System.Text;
using MyWatchShop.DAL;
using MyWatchShop.Models;

namespace MyWatchShop.BLL
{
   public class ProductManager
    {
       public static IList<Product> GetAllProduct()
       {
           return ProductService.GetAllProducts();
       }

       public static bool UpdateProduct(int id, string name, decimal oldprice, decimal newprice, string smallpicture)
       {
           return ProductService.UpdateProduct(id,name,oldprice,newprice,smallpicture);
       }

       public static bool AddProduct(string name, decimal oldprice, decimal newprice, string smallpicture)
       {
           return ProductService.AddProduct(name,oldprice,newprice,smallpicture);
       }

       public static Product GetProductById(int id)
       {
           return ProductService.GetProductById(id);
       }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?