surveylib/SurveyLib.Core/Services/ISurveyService.cs

14 lines
No EOL
446 B
C#

using SurveyLib.Core.Models;
namespace SurveyLib.Core.Services;
public interface ISurveyService
{
Task<bool> AddSurveyAsync(Survey survey);
Task<bool> UpdateSurveyAsync(Survey survey);
Task<bool> DeleteSurveyAsync(int id);
Task<IEnumerable<Survey>> GetSurveysAsync();
Task<Survey> GetSurveyByIdAsync(int id);
Task<Survey> GetSurveyWithQuestionsByIdAsync(int id);
Task<Survey> GetSurveyWithAnswersByIdAsync(int id);
}