Created
October 12, 2020 17:01
-
-
Save JIOO-phoeNIX/d0575baa9d741e9d8532f4ae6d60e217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CockroachDbLib.Models; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace CockroachDbLib.Repository | |
{ | |
public interface IAccountRepository | |
{ | |
List<Account> GetAllAccounts(); | |
Task<Account> GetAccountById(int? id); | |
Task<Account> CreateAccount(Account account); | |
int GetLastAccountId(); | |
void UpdateAccount(Account account); | |
Task<string> DeleteAccount(int? id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment