Example #1
0
        public async Task <JsonResult> Data([DataSourceRequest] DataSourceRequest request, string ownerLevel, string ownerId)
        {
            var oLevel = ownerLevel.ToEnum <OwnerLevel>();
            var query  = _userGroupManager.GetUserGroupsOfOwnerQuery(oLevel, ownerId);
            var result = query.ToDataSourceResult(request);

            return(Json(result));
        }