示例#1
0
        public List <Models.User> GetAllUsersByStatus(bool IsActive)
        {
            DataTable          dt        = new DataTable();
            List <Models.User> usersList = new List <Models.User>();

            try
            {
                dt = _userData.GetAllUsersByStatus(IsActive);
                foreach (DataRow record in dt.Rows)
                {
                    Models.User user = new Models.User();
                    user = BuildUserData(record);
                    usersList.Add(user);
                }
            }
            catch (Exception)
            {
            }
            return(usersList);
        }