added some service interfaces
This commit is contained in:
parent
cac3cd5ea4
commit
74b650dd8e
4 changed files with 48 additions and 0 deletions
14
SurveyLib.Core/Services/ISurveyService.cs
Normal file
14
SurveyLib.Core/Services/ISurveyService.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue