Note Onion - 1 - Domain - INoteRepository

Here is the source code for INoteRepository.cs file it is placed in the Repositories directory of the Note.Domain project.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Note.Domain.Entities;
using Note.Shared;

namespace Note.Domain.Repositories
{
public interface INoteRepository
{
Task<IResult<List<NoteEntity>>> GetAllNotes(
string companyKey,
string applicationKey,
string applicationSubKey);
Task<IResult<NoteEntity>> GetNoteById(
string companyKey,
long id);
Task<IBaseResult> CreateNote(
NoteEntity note);
Task<IBaseResult> UpdateNote(
NoteEntity note);
Task<IBaseResult> DeleteNote(
string companyKey,
long id);
}
}