2023-08-15 22:52:30 -05:00
|
|
|
|
using DamageAssesment.Api.Questions.Models;
|
|
|
|
|
|
|
|
|
|
namespace DamageAssesment.Api.Questions.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IQuestionsProvider : IQuestionTypesProvider
|
|
|
|
|
{
|
2023-09-08 14:40:06 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanQuestion Question, string ErrorMessage)> GetQuestionAsync(int id, string language);
|
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.MultiLanQuestion> Questions, string ErrorMessage)> GetQuestionsAsync(string language);
|
|
|
|
|
Task<(bool IsSuccess, List<SurveyQuestions> SurveyQuestions, string ErrorMessage)> GetSurveyQuestionAsync(int surveyId,string language);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanQuestion Question, string ErrorMessage)> PostQuestionAsync(Models.Question Question);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanQuestion Question, string ErrorMessage)> UpdateQuestionAsync(Models.Question Question);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanQuestion Question, string ErrorMessage)> DeleteQuestionAsync(int id);
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
|
|
|
|
|
2023-09-08 14:40:06 -05:00
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.MultiLanQuestionCategory> QuestionCategories, string ErrorMessage)> GetQuestionCategoriesAsync(string? language);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanQuestionCategory QuestionCategory, string ErrorMessage)> GetQuestionCategoryAsync(int id, string? language);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanQuestionCategory QuestionCategory, string ErrorMessage)> PostQuestionCategoryAsync(Models.QuestionCategory QuestionCategory);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanQuestionCategory QuestionCategory, string ErrorMessage)> UpdateQuestionCategoryAsync(Models.QuestionCategory QuestionCategory);
|
|
|
|
|
Task<(bool IsSuccess, Models.MultiLanQuestionCategory QuestionCategory, string ErrorMessage)> DeleteQuestionCategoryAsync(int id);
|
2023-09-04 20:31:41 -05:00
|
|
|
|
void SeedData();
|
2023-08-15 22:52:30 -05:00
|
|
|
|
}
|
|
|
|
|
}
|