⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 productmanager.cs

📁 简单手表销售管理(三层开发)源码
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -