/// <summary>
        /// required implementation
        /// </summary>
        /// <param name="pageIndex">required implementation</param>
        /// <param name="pageSize">required implementation</param>
        /// <param name="totalRecords">required implementation</param>
        /// <returns>required implementation</returns>
        public IList <user> GetAllUsers(int pageIndex, int pageSize, out int totalRecords)
        {
            log.Info("GetAllUsers Application " + _App.AppName);
            if (pageIndex > 0 && pageSize > 0)
            {
                UserSrv.SetFetchPage((pageIndex - 1) * pageSize, pageSize);
            }

            try
            {
                // string HQL = "select u from user u join u.ApplicationList app where app.AppID = :AppID  ";
                // IList<user> lst = UserSrv.GetbyHQuery(HQL,new SQLParam("AppID",_App.AppID));
                IList <user> lst = UserSrv.GetAllInApplication(_App.AppID);
                totalRecords = lst.Count;
                return(lst);
            }
            catch (Exception ex)
            {
                log.Error("GetAllUsers Error Application " + _App.AppName, ex);
                totalRecords = 0;
                return(null);
            }
        }