Business Logic.cs

                Never    
C#
       
using System;
using System.Collections.Generic;
using RJK.Framework;
using Ucar.Ucar.DataAccess.W14;
using Ucar.Ucar.Models.W14;

namespace Ucar.Ucar.BusinessLogic.W14
{

    public class UW14003BussinessLogic : BaseBusinessLogic
    {

        public List<PW14PasswordChangeModel> GetPW14PasswordChangesInfo()
        {
            List<PW14PasswordChangeModel> passwordChangeModelList = new List<PW14PasswordChangeModel>();

            string tableName = $"tbsm_Users";

            try
            {

                using (var reader = new UserMasterDataAccess().GetUserMasterList(tableName))
                {
                    while (reader.Read())
                    {
                        PW14PasswordChangeModel passwordChangeModel = new PW14PasswordChangeModel();

                        passwordChangeModel.Password = reader.GetString("Password") ?? "";

                        passwordChangeModelList.Add(passwordChangeModel);

                    }
                }
            }

            catch(Exception ex)
            {

            }

            return passwordChangeModelList;
        }
    }
}

Raw Text