Note Onion - 2 - Application - INoteService

Here is the source code for INoteService.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
using Note.Application.DTOs;
using Note.Shared;

namespace Note.Application.Services
{
public interface INoteService
{
Task<IResult<List<NoteDto>>> GetAllNotesAsync(string companyKey, string applicationKey, string applicationSubKey);
Task<IResult<NoteDto>> GetNoteById(string companyKey, long id);
Task<IBaseResult> CreateNote(NoteDto noteDto);
Task<IBaseResult> UpdateNote(NoteDto noteDto);
Task<IBaseResult> DeleteNote(string companyKey, long id);
}

}