示例#1
0
        public IList <SysRight> GetAllSysRights()
        {
            var list = CacheMaker.IISCache.GetOrSetThenGet("all_sys_right", () =>
            {
                using (LSContext context = new LSContext())
                {
                    var result = context.SysRights.Where(r => r.IsAvailable && !r.IsDel).ToList();
                    return(result);
                }
            });

            return(list);
        }
 public TicketController(LSContext context)
 {
     _context = context;
 }
 public DepartmentController(LSContext context)
 {
     _context = context;
 }
 public EmployeeController(LSContext context)
 {
     _context = context;
 }