public IActionResult GetAllPaging(int?status, int?advertiserSort, string keyword, int page, int pageSize)
        {
            var userid = _generalFunctionController.Instance.getClaimType(User, CommonConstants.UserClaims.Key);

            var  A            = _advertiserService.GetBysId(userid);
            var  WM           = _webMasterService.GetBysId(userid);
            bool?isAccountant = false;
            bool?isAdCensor   = false;

            if (WM != null)
            {
                if (WM.WebMasterTypeFK == Const_WebmasterType.Accountant)
                {
                    isAccountant = true;
                }
                if (WM.WebMasterTypeFK == Const_WebmasterType.AdCensor)
                {
                    isAdCensor = true;
                }
            }

            var model = _advertisementContentService.GetAllPaging(isAdCensor, isAccountant, A.KeyId, status, advertiserSort, keyword, page, pageSize);

            return(new OkObjectResult(model));
        }
        public IActionResult GetAllPaging(string fromdate, string todate, int?status, string keyword, int page, int pageSize)
        {
            var  userid       = _generalFunctionController.Instance.getClaimType(User, CommonConstants.UserClaims.Key);
            var  A            = _advertiserService.GetBysId(userid);
            var  WM           = _webMasterService.GetBysId(userid);
            bool?isSaleAdmin  = false;
            bool?isAccountant = false;

            if (WM != null)
            {
                if (WM.WebMasterTypeFK == Const_WebmasterType.Admin)
                {
                    isSaleAdmin = true;
                }
                if (WM.WebMasterTypeFK == Const_WebmasterType.Accountant)
                {
                    isAccountant = true;
                }
            }

            var model = _advertiseContractService.GetAllPaging(fromdate, todate, isSaleAdmin, isAccountant, A.KeyId, status, keyword, page, pageSize);

            return(new OkObjectResult(model));
        }