public void DeleteProfile(ProfileDataModel profile) { ShowProfilesMenu = false; var result = _dialogManager.MessageBoxSync(new MessageBoxDialogParams( String.Format("Are you sure you want to delete the profile '{0}'?", profile.Name), "Confirm delete profile", SixMessageBoxButton.YesNo)); if (result.IsYes()) _mediator.Request(new DeleteProfileCommand(profile.Id)); }
public void DeleteProfile(ProfileDataModel profile) { ShowProfilesMenu = false; var result = _dialogManager.MessageBox(new MessageBoxDialogParams( $"Are you sure you want to delete the profile '{profile.Name}'?", "Confirm delete profile", SixMessageBoxButton.YesNo)).WaitSpecial(); if (result.IsYes()) _mediator.Send(new DeleteProfileCommand(profile.Id)); }
private static void Add(ProfileDataModel eax, ProfileDataModel edx) { if (edx != null) { eax.ConsolidatedAmount += edx.ProvinceAmount + edx.OefcAmount; eax.Deals += edx.Deals; eax.ProvinceAmount += edx.ProvinceAmount; eax.OefcAmount += edx.OefcAmount; eax.PercentBorrowed += edx.PercentBorrowed; } }
public void DeleteProfile(ProfileDataModel profile) { ShowProfilesMenu = false; var result = _dialogManager.MessageBox(new MessageBoxDialogParams( $"Are you sure you want to delete the profile '{profile.Name}'?", "Confirm delete profile", SixMessageBoxButton.YesNo)).WaitSpecial(); if (result.IsYes()) { _mediator.Send(new DeleteProfileCommand(profile.Id)); } }
public void InsertProfileForUser(ProfileDataModel data) { data.Password = ProfileEncrypter.EncryptPassword(data.Password, data.UserId); object sqlParams = new { @userId = data.UserId, @categoryId = data.CategoryId, @title = data.Title, @website = data.Website, @loginName = data.LoginName, @password = data.Password, @signUpEmail = data.SignUpEmail }; _dataAccess.SaveData(DboNames.spInsertProfileByUser, DboNames.dboNameAzure, sqlParams); }
public void UpdateProfile(ProfileDataModel data) { data.Password = ProfileEncrypter.EncryptPassword(data.Password, data.UserId); object sqlParams = new { @id = data.Id, @categoryId = data.CategoryId, @title = data.Title, @website = data.Website, @loginName = data.LoginName, @password = data.Password, @signUpEmail = data.SignUpEmail, @lastUpdated = data.LastUpdated }; _dataAccess.SaveData(DboNames.spUpdateProfile, DboNames.dboNameAzure, sqlParams); }
public void SwitchProfile(ProfileDataModel profile) { ShowProfilesMenu = false; _mediator.Request(new SwitchProfileCommand(profile.Id)); }
public void OnGet() { Profile = UserManager.GetUserAsync(HttpContext.User).GetAwaiter().GetResult().MapTo <User, ProfileDataModel>(); }
public void SwitchProfile(ProfileDataModel profile) { ShowProfilesMenu = false; _mediator.Send(new SwitchProfileCommand(profile.Id)); }
public void InitializeDataModel() { profileDataModel = new ProfileDataModel(); }