public async Task <string> CreateCode(string userId) { var guid = Guid.NewGuid().ToString(); var user = await Db.Users.FindAsync(int.Parse(userId)); var passportNumber = user.PassportNumber; var licenseNumber = user.LicenseNumber; var appId = user.AppID; CodeBuilder builder = new CodeBuilder(); var hashedCode = builder .AddAppId(appId) .AddGUID(guid) .AddLicenseNumber(licenseNumber) .AddPassportNumber(passportNumber.ToString()) .Build(); codeVault.AddHashCodeToVault(hashedCode); return(hashedCode); }