private UserCredentials CopyCredentials(UserCredentials from) { Mapper.CreateMap<UserCredentials, UserCredentials>(); return Mapper.Map<UserCredentials>(from); }
public void SaveUserCredentials(UserCredentials credentials) { credentialStore[credentials.Username.ToLower()] = CopyCredentials(credentials); File.AppendAllText(backupFileLocation, credentials.Username + "\t" + credentials.PasswordValidationString + "\r\n"); }