public ActionResult GetAffiliateItems([DataSourceRequest] DataSourceRequest request) { var list = _webStoreServices.GetUserAffiliateItems(CurrentUserId).OrderBy(x => x.ItemName).ThenBy(x => x.WebStore.Name).ToArray(); return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }