Exemplo n.º 1
0
        public ServiceResult <object> Save(ActionDto dto)
        {
            var userInfo    = _userSessionManager.GetUserInfo(dto.Ticket, Request);
            var bp          = new BusinessParam(userInfo);
            var checkAccess = _userSessionManager.CheckAccess(bp, ClassDetails[0].Clazz,
                                                              dto.EntityId == 0 ? "insert" : "update");

            return(checkAccess.Done ? ActionFacade.GetInstance().Save(bp, dto) : checkAccess);
        }
Exemplo n.º 2
0
        public ServiceResult <object> AutocompleteView(Clause clause)
        {
            var userInfo    = _userSessionManager.GetUserInfo(clause.Ticket, Request);
            var bp          = new BusinessParam(userInfo, clause);
            var checkAccess = _userSessionManager.CheckAccess(bp, ClassDetails[0].Clazz, "autocomplete");

            return(checkAccess.Done
                ? ActionFacade.GetInstance().AutocompleteView(bp)
                : checkAccess);
        }