feat: DTOs, Result Type
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
using TicketAppIncrArchi.Application.DTO;
|
||||
using TicketAppIncrArchi.Domain.Entities;
|
||||
|
||||
namespace TicketAppIncrArchi.Application.Interfaces;
|
||||
|
||||
public interface ITicketService
|
||||
{
|
||||
IEnumerable<Ticket> GetAll();
|
||||
{
|
||||
|
||||
//TODO: implement Repository
|
||||
IEnumerable<TicketResponse> GetAll();
|
||||
|
||||
Ticket? GetById(Guid id);
|
||||
Ticket Create(Ticket ticket);
|
||||
Result<CreateTicketResponse> Create(CreateTicketRequest request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user