Added Main
This commit is contained in:
14
noteApi/Interfaces/INoteRepository.cs
Normal file
14
noteApi/Interfaces/INoteRepository.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using noteApi.Dtos.Note;
|
||||
using noteApi.Models;
|
||||
|
||||
namespace noteApi.Interfaces
|
||||
{
|
||||
public interface INoteRepository
|
||||
{
|
||||
Task<List<Note>> GetAllAsync();
|
||||
Task<Note?> GetByIdAsync(int id);
|
||||
Task<Note> CreateAsync(CreateNoteDto noteModel);
|
||||
Task<Note?> UpdateAsync(int id, CreateNoteDto noteModel);
|
||||
Task<Note?> DeleteAsync(int id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user