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); }
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); }