コード例 #1
0
        public dynamic GetTermsandCondition(JObject Obj)
        {
            ActivityListFilters filter = Obj.ToObject <ActivityListFilters>();
            int total            = 0;
            TermsandCondition re = new TermsandCondition();

            re.TermsandConditions = _adminService.GetTermsandCondition(filter.limit, filter.offset, filter.order, filter.sort, out total);
            var result = new
            {
                total = total,
                rows  = re.TermsandConditions,
            };

            return(result);
        }
コード例 #2
0
        public dynamic GetTermsandConditionUser(JObject Obj)
        {
            int total = 0;

            int userID           = Obj["useriD"].Value <int>();
            int IndustryID       = Obj["IndustryId"].Value <int>();
            TermsandCondition re = new TermsandCondition();

            re.TermsandConditions = _adminService.GetTermsandConditionUser(userID, IndustryID);
            var result = new
            {
                total = total,
                rows  = re.TermsandConditions,
            };

            return(result);
        }