Added Main

This commit is contained in:
2025-02-08 14:01:15 +01:00
parent d14f828514
commit 621df92b27
187 changed files with 8574 additions and 0 deletions

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

View File

@@ -0,0 +1,9 @@
using noteApi.Models;
namespace noteApi.Interfaces
{
public interface ITokenService
{
string CreateToken(AppUser user);
}
}