/// <summary>
        /// Applications the log grid data.
        /// </summary>
        /// <param name="filter">The filter.</param>
        /// <returns></returns>
        public async Task <JsonResult> ApplicationLogGridData(ApplicationLog filter)
        {
            filter.ClearEmptyModifiedColumns();

            PagedResult <ApplicationLog> pagedResult = await ApplicationLogBusinessManager.Current.PagingSelectAsync(SecurityManager.Current.ConnectionInfo, filter);

            foreach (ApplicationLog applicationLog in pagedResult.Results)
            {
                List <JSUser> jsUsers = await JSUserBusinessManager.Current.SelectAsync(SecurityManager.Current.ConnectionInfo, new JSUser()
                {
                    JSUserId = applicationLog.JSUserId
                });

                if (jsUsers.Any())
                {
                    applicationLog.JSUserName = jsUsers.First().Name;
                }

                applicationLog.MessageTypeText = EnumHelper.Current.GetNameWithSpaces((MessageTypes)applicationLog.MessageTypeId);

                applicationLog.ApplicationName = EnumHelper.Current.GetNameWithSpaces((Applications)applicationLog.ApplicationId);
            }

            return(Json(pagedResult));
        }