public ActionResult GetEventLogs([DataSourceRequest] DataSourceRequest request, int periodSelectionKind, short?eventTypeId = null, int?userId = null, int?courseId = null, int?bundleId = null, int?storeId = null, long?sessionId = null) { var kind = periodSelectionKind.ToPeriodSelectionKind(); var list = _reportServices.GetUserEventLogs(request.Page, request.PageSize, userId, eventTypeId, kind, courseId, bundleId, storeId, sessionId); return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }