2023-08-15 22:52:30 -05:00
|
|
|
|
namespace DamageAssesment.Api.Surveys.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface ISurveyProvider
|
|
|
|
|
{
|
2023-09-08 14:40:06 -05:00
|
|
|
|
Task<(bool IsSuccess, IEnumerable< Models.MultiLanSurvey> Surveys, string ErrorMessage)> GetSurveysAsync(string language);
|
2023-12-19 13:16:17 -05:00
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.MultiLanSurvey> Surveys, string ErrorMessage)> GetActiveSurveysAsync(bool IsActive,string language);
|
2023-09-08 14:40:06 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanSurvey Surveys, string ErrorMessage)> GetSurveysAsync(int id, string language);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanSurvey Survey, string ErrorMessage)> PostSurveyAsync(Models.Survey Survey);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanSurvey Survey, string ErrorMessage)> PutSurveyAsync(int id, Models.Survey Survey);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanSurvey Survey, string ErrorMessage)> DeleteSurveyAsync(int id);
|
2023-09-04 20:31:41 -05:00
|
|
|
|
void seedData();
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|