📄 productmanager.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 + -