Note Onion - 1 - Domain - INoteTypeRepository

Here is the source code for INoteTypeRepository.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
using Note.Domain.Entities;
using Note.Shared;

namespace Note.Domain.Repositories
{
public interface INoteTypeRepository
{
Task<IResult<List<NoteTypeEntity>>> GetNoteTypes(
string companyKey,
string applicationKey);
Task<IResult<NoteTypeEntity>> GetNoteTypeById(
string companyKey,
long id);
Task<IBaseResult> CreateNoteType(
NoteTypeEntity noteType);
Task<IBaseResult> UpdateNoteType(
NoteTypeEntity noteType);
Task<IBaseResult> DeleteNoteType(
string companyKey,
long id);
}
}