30 lines
849 B
C#
30 lines
849 B
C#
using HelpDesk.Models.Entities;
|
|
|
|
namespace HelpDesk.Data.Repositories;
|
|
|
|
public interface ITicketCommentRepository
|
|
{
|
|
Task<TicketComment?> GetByIdAsync(Guid id);
|
|
Task<IEnumerable<TicketComment>> GetByTicketIdAsync(Guid ticketId);
|
|
Task<TicketComment> CreateAsync(TicketComment comment);
|
|
Task<bool> DeleteAsync(Guid id);
|
|
}
|
|
|
|
public interface IGroupRepository
|
|
{
|
|
Task<Group?> GetByIdAsync(Guid id);
|
|
Task<IEnumerable<Group>> GetAllAsync();
|
|
Task<Group> CreateAsync(Group group);
|
|
Task<Group?> UpdateAsync(Group group);
|
|
Task<bool> DeleteAsync(Guid id);
|
|
}
|
|
|
|
public interface ISLARepository
|
|
{
|
|
Task<SLAPolicy?> GetByIdAsync(Guid id);
|
|
Task<IEnumerable<SLAPolicy>> GetAllAsync();
|
|
Task<SLAPolicy> CreateAsync(SLAPolicy policy);
|
|
Task<SLAPolicy?> UpdateAsync(SLAPolicy policy);
|
|
Task<bool> DeleteAsync(Guid id);
|
|
}
|