Пример #1
0
        public ServiceResult <object> ShowRow(Clause clause)
        {
            var userInfo    = _userSessionManager.GetUserInfo(clause.Ticket, Request);
            var bp          = new BusinessParam(userInfo, clause);
            var checkAccess = _userSessionManager.CheckAccess(bp, ClassDetails[0].Clazz, "update");

            return(checkAccess.Done
                ? SystemConfigFacade.GetInstance().ShowRow(bp)
                : checkAccess);
        }
Пример #2
0
        public ServiceResult <object> Save()
        {
            var dtoFromRequest = SystemConfigFacade.GetInstance().GetDtoFromRequest(HttpContext.Request);

            if (!dtoFromRequest.Done)
            {
                return(dtoFromRequest);
            }
            var dto         = (SystemConfigDto)dtoFromRequest.Result;
            var userInfo    = _userSessionManager.GetUserInfo(dto.Ticket, Request);
            var bp          = new BusinessParam(userInfo);
            var checkAccess = _userSessionManager.CheckAccess(bp, ClassDetails[0].Clazz, "update");

            return(checkAccess.Done ? SystemConfigFacade.GetInstance().Save(bp, dto) : checkAccess);
        }