Note Onion - 2 - Application - INoteTypeService

Here is the source code for INoteTypeService.cs file it is placed in the Services directory of the Note.Application project.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Note.Application.DTOs;
using Note.Shared;

namespace Note.Application.Services
{
public interface INoteTypeService
{
Task<IResult<List<NoteTypeDto>>> GetNoteTypes(
string companyKey,
string applicationKey);
Task<IResult<NoteTypeDto>> GetNoteTypeById(
string companyKey,
long id);
Task<IBaseResult> CreateNoteType(NoteTypeDto noteTypeDto);
Task<IBaseResult> UpdateNoteType(NoteTypeDto noteTypeDto);
Task<IBaseResult> DeleteNoteType(
string companyKey,
long id);
}
}