public ServiceResult <object> GetAllData(Clause clause)
        {
            var userInfo    = _userSessionManager.GetUserInfo(clause.Ticket, Request);
            var bp          = new BusinessParam(userInfo, clause);
            var checkAccess = _userSessionManager.CheckAccess(bp, ClassDetails[0].Clazz, "gridView");

            return(checkAccess.Done
                ? AccessGroupFacade.GetInstance().GetAllData(bp)
                : checkAccess);
        }
        public ServiceResult <object> Save()
        {
            var dtoFromRequest = AccessGroupFacade.GetInstance().GetDtoFromRequest(HttpContext.Request);

            if (!dtoFromRequest.Done)
            {
                return(dtoFromRequest);
            }
            var dto         = (List <UseCaseActionAccessGroupDto>)dtoFromRequest.Result;
            var userInfo    = _userSessionManager.GetUserInfo(dto[0].AccessGroup.Ticket, Request);
            var bp          = new BusinessParam(userInfo);
            var checkAccess = _userSessionManager.CheckAccess(bp, ClassDetails[0].Clazz,
                                                              dto[0].AccessGroup.EntityId == 0 ? "insert" : "update");

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