Skip to content

Instantly share code, notes, and snippets.

@JIOO-phoeNIX
Created October 12, 2020 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JIOO-phoeNIX/d0575baa9d741e9d8532f4ae6d60e217 to your computer and use it in GitHub Desktop.
Save JIOO-phoeNIX/d0575baa9d741e9d8532f4ae6d60e217 to your computer and use it in GitHub Desktop.
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