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

📄 userrolemanager.cs

📁 一个网上书店的源码
💻 CS
字号:
//============================================================
// Producnt name:		BoBoARTS.DBMad
// Version: 			1.0
// Coded by:			Shen Bo (bo.shen@jb-aptech.com.cn)
// Auto generated at: 	2007-9-6 17:40:19
//============================================================

using System;
using System.Collections.Generic;
using System.Text;
using MyBookShop.DAL;
using MyBookShop.Models;

namespace MyBookShop.BLL
{

    public static partial class UserRoleManager
    {
        public static UserRole AddUserRole(UserRole userRole)
        {
            return UserRoleService.AddUserRole(userRole);
        }

        public static void DeleteUserRole(UserRole userRole)
        {
            UserRoleService.DeleteUserRole(userRole);
        }

        public static void DeleteUserRoleById(int id)
        {
            UserRoleService.DeleteUserRoleById(id);
        }

		public static void ModifyUserRole(UserRole userRole)
        {
            UserRoleService.ModifyUserRole(userRole);
        }
        
        public static IList<UserRole> GetAllUserRoles()
        {
            return UserRoleService.GetAllUserRoles();
        }

        public static UserRole GetUserRoleById(int id)
        {
            return UserRoleService.GetUserRoleById(id);
        }

        public static UserRole GetDefaultUserRole()
        {
			return GetUserRoleById(1);
        }
    }
}

⌨️ 快捷键说明

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