Files
NoteApp/noteApi/Interfaces/INoteRepository.cs
2025-02-08 14:01:15 +01:00

15 lines
379 B
C#

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);
}
}