added some service interfaces

This commit is contained in:
Вячеслав 2025-04-01 16:52:02 +05:00
parent cac3cd5ea4
commit 74b650dd8e
4 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,11 @@
using SurveyLib.Core.Models;
namespace SurveyLib.Core.Services;
public interface IQuestionService
{
Task<bool> AddQuestionAsync(QuestionBase question);
Task<bool> UpdateQuestionAsync(QuestionBase question);
Task<bool> DeleteQuestionAsync(int id);
Task<IEnumerable<QuestionBase>> GetQuestionsBySurveyIdAsync(int surveyId);
}