public UnconfirmedUsersForWidgetsModel(UsersConfirmationModel userConfirmationModel)
 {
     UserProfileBusinessModel user = userConfirmationModel.UnconfirmedUser;
     ReaderBusinessModel reader = userConfirmationModel.CoincidedReaderBusiness;
     this.UserName = user != null ? user.UserName : "******";
     this.ReaderName = reader != null
         ? reader.FirstName + " " + reader.LastName
         : "Reader with such e-mail does not exist";
     this.RoleName = "Unregistered";
 }
        public UnconfirmedUsersForWidgetsModel(UsersConfirmationModel userConfirmationModel)
        {
            UserProfileBusinessModel user   = userConfirmationModel.UnconfirmedUser;
            ReaderBusinessModel      reader = userConfirmationModel.CoincidedReaderBusiness;

            this.UserName   = user != null ? user.UserName : "******";
            this.ReaderName = reader != null
                ? reader.FirstName + " " + reader.LastName
                : "Reader with such e-mail does not exist";
            this.RoleName = "Unregistered";
        }
示例#3
0
        public List<UsersConfirmationModel> CreateListOfUnconfirmedUsers(string[] allUnconfirmedUsers)
        {
            List<UsersConfirmationModel> list=new List<UsersConfirmationModel>();
            foreach (var item in allUnconfirmedUsers)
            {
                UserProfileBusinessModel user = usersFacade.GetUserByUserName(item);
                ReaderBusinessModel readerBusiness = readerManager.GetReaderByEmail(user.Email);
                UsersConfirmationModel listItem = new UsersConfirmationModel
                {
                    CoincidedReaderBusiness = readerBusiness,
                    UnconfirmedUser = user
                };

                list.Add(listItem);
            }

            return list;
        }