chat: add hello controller
This commit is contained in:
		
							parent
							
								
									6f6e19bbb5
								
							
						
					
					
						commit
						7b4cbd4fb7
					
				
					 12 changed files with 114 additions and 53 deletions
				
			
		| 
						 | 
				
			
			@ -16,11 +16,11 @@ public abstract class IDatabaseContext : DbContext
 | 
			
		|||
        var publicKey = rsa.ExportRSAPublicKeyPem();
 | 
			
		||||
        var privateKey = rsa.ExportRSAPrivateKeyPem();
 | 
			
		||||
 | 
			
		||||
        await Instance.AddAsync(new Instance
 | 
			
		||||
        Instance.Add(new Instance
 | 
			
		||||
        {
 | 
			
		||||
            PublicKey = publicKey!,
 | 
			
		||||
            PrivateKey = privateKey!,
 | 
			
		||||
        }, ct);
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        await SaveChangesAsync(ct);
 | 
			
		||||
        return true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue