public ProfileController(IUserProfileData profileData, ICertificationData certData, UserManager <IdentityUser> UserManager, IHtmlHelper html)
 {
     this.profileData = profileData;
     this.certData    = certData;
     userManager      = UserManager;
     this.html        = html;
 }
Beispiel #2
0
 public RegisterModel(
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender, IUserProfileData profileData)
 {
     _userManager     = userManager;
     _signInManager   = signInManager;
     _logger          = logger;
     _emailSender     = emailSender;
     this.profileData = profileData;
 }
Beispiel #3
0
 public CertificationsController(ICertificationData certData, IUserProfileData profileData, IFileUploadData fileData)
 {
     CertData         = certData;
     this.profileData = profileData;
     this.fileData    = fileData;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserProfile"/> class.
 /// </summary>
 public UserProfile()
 {
     _userProfile = new UserProfileDb();
 }
Beispiel #5
0
        ///// <summary>
        ///// Gets or sets the planned meals.
        ///// </summary>
        ///// <value>
        ///// The planned meals.
        ///// </value>
        //public IEnumerable<IMealHistoryRecord> MealRecords
        //{
        //	get { return _userProfile.MealRecords; }
        //	set
        //	{
        //		_userProfile.MealRecords = value;
        //		RaisePropertyChanged();
        //	}
        //}

        ///// <summary>
        ///// Gets or sets the weight history.
        ///// </summary>
        ///// <value>
        ///// The weight history.
        ///// </value>
        //public IEnumerable<IWeightHistoryRecord> WeightHistory
        //{
        //	get { return _userProfile.WeightHistory; }
        //	set
        //	{
        //		_userProfile.WeightHistory = value;
        //		RaisePropertyChanged();
        //	}
        //}

        ///// <summary>
        ///// Gets or sets the trainings history.
        ///// </summary>
        ///// <value>
        ///// The trainings history.
        ///// </value>
        //public IEnumerable<ITrainingHistoryRecord> TrainingsHistory
        //{
        //	get { return _userProfile.TrainingsHistory; }
        //	set
        //	{
        //		_userProfile.TrainingsHistory = value;
        //		RaisePropertyChanged();
        //	}
        //}

        #endregion

        #region C-tors

        /// <summary>
        /// Initializes a new instance of the <see cref="UserProfile"/> class.
        /// </summary>
        /// <param name="userProfile">The user profile.</param>
        internal UserProfile(IUserProfile userProfile)
        {
            _userProfile = userProfile as IUserProfileData;
        }