using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace BLL
{
public static class ButtonToMenuService
{
///
/// 根据menuId获取按钮权限信息
///
///
///
public static List GetButtonToMenuListByMenuId(string menuId)
{
return (from x in Funs.DB.Sys_ButtonToMenu where x.MenuId == menuId orderby x.SortIndex select x).ToList();
}
///
/// 根据buttonName获取按钮权限信息
///
///
///
public static Model.Sys_ButtonToMenu GetButtonToMenuByButtonName(string menuId, string buttonName)
{
return Funs.DB.Sys_ButtonToMenu.FirstOrDefault(e => e.ButtonName == buttonName && e.MenuId == menuId);
}
}
}