2023-08-15 22:52:30 -05:00
|
|
|
|
namespace DamageAssesment.Api.Answers.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IAnswersProvider
|
|
|
|
|
{
|
|
|
|
|
Task<(bool IsSuccess,IEnumerable< Models.Answer> Answers, string ErrorMessage)> GetAnswersAsync();
|
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.Answer> Answers, string ErrorMessage)> GetAnswersByQuestionAsync(int questionId);
|
|
|
|
|
Task<(bool IsSuccess, Models.Answer Answer, string ErrorMessage)> GetAnswerByIdAsync(int Id);
|
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.Answer> Answers, string ErrorMessage)> GetAnswersAsync(int responseId);
|
2023-08-27 10:55:58 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.Answer Answer, string ErrorMessage)> PostAnswerAsync(Models.Answer Answer);
|
|
|
|
|
Task<(bool IsSuccess, Models.Answer Answer, string ErrorMessage)> UpdateAnswerAsync(Models.Answer Answer);
|
2023-08-15 22:52:30 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.Answer Answer, string ErrorMessage)> DeleteAnswerAsync(int Id);
|
2023-09-04 20:31:41 -05:00
|
|
|
|
void SeedData();
|
2023-08-15 22:52:30 -05:00
|
|
|
|
}
|
|
|
|
|
}
|