public Resp_Login_Index Index(Req_Index request) { var response = new Resp_Login_Index(); response.sysmodules = _sysRightService.GetRightModuleByUser(request.userId); using (var context = new SKContext()) { var sysUser = context.SysUsers.SingleOrDefault(t => t.ID == request.userId); response.syschannels = sysUser.SysChannels.ConvertoDto <SysChannel, SysChannelDTO>().ToList(); } return(response); }
public Resp_Index <RecordManagerDTO> Index(Req_Index request) => _service.Index(request);
public Resp_Index <LayoutDTO> Index(Req_Index request) => _service.Index(request);
public Resp_Index <SysUserDTO> Index(Req_Index request) => _service.Index(request);
public Resp_Index <CarColor> Index(Req_Index request) => _carColorService.Index(request);
public Resp_Index <SysChannelDTO> Index(Req_Index request) => sysChannelService.Index(request);
public Resp_Index <AlarmDTO> Index(Req_Index request) => _service.Index(request);
public Resp_Index <SysRoleDTO> Index(Req_Index request) => _sysRoleService.Index(request);
public Resp_RightOperator_Index Index(Req_Index request) => _sysRightOperatorService.Index(request);
public Resp_Index <CarType> Index(Req_Index request) => _carTypeService.Index(request);
public Resp_Index <CaptureDTO> Index(Req_Index request) => _service.Index(request);
public Resp_Index <RecordMGrade> Index(Req_Index request) => _recordMGradeService.Index(request);
public Resp_SysErrorLog_Index Index(Req_Index request) => _sysErrorLogService.Index(request);