initial commit from an older template
This commit is contained in:
21
Services/Instructions/IInstructionService.cs
Normal file
21
Services/Instructions/IInstructionService.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using GamificationService.Models.Database;
|
||||
using GamificationService.Models.DTO;
|
||||
using GamificationService.Models.Messages.Instructions;
|
||||
|
||||
namespace GamificationService.Services.Instructions;
|
||||
|
||||
public interface IInstructionService
|
||||
{
|
||||
public Task<Instruction> CreateInstruction(Instruction model);
|
||||
public Task<bool> UpdateInstructionById(Instruction model);
|
||||
public Task<bool> DeleteInstructionById(long instructionId);
|
||||
|
||||
public Task<InstructionDTO> CreateInstruction(CreateInstructionRequest model);
|
||||
public Task<bool> UpdateInstructionById(UpdateInstructionRequest model);
|
||||
|
||||
public List<InstructionDTO> GetAllInstructions(long userId);
|
||||
public List<InstructionDTO> GetInstructionsByCategoryId(long userId, long categoryId);
|
||||
public List<InstructionDTO> GetCompletedInstructions(long userId);
|
||||
public List<InstructionDTO> GetUnfinishedInstructions(long userId);
|
||||
public List<InstructionDTO> GetInstructionById(long userId, long instructionId);
|
||||
}
|
||||
Reference in New Issue
Block a user