2023-09-22 10:52:17 -05:00
|
|
|
|
using DamageAssesment.Api.DocuLinks.Models;
|
|
|
|
|
|
|
|
|
|
namespace DamageAssesment.Api.DocuLinks.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IDoculinkProvider : ILinkTypesProvider
|
|
|
|
|
{
|
|
|
|
|
Task<(bool IsSuccess, Models.ResDoculink Document, string ErrorMessage)> GetDocumentAsync(int id, string? linktype, string? language);
|
|
|
|
|
Task<(bool IsSuccess, Models.Doculink Document, string ErrorMessage)> GetDocumentByidAsync(int id);
|
2023-10-24 11:15:13 -05:00
|
|
|
|
// Task<(bool IsSuccess, IEnumerable<Models.ResDoculink> documents, string ErrorMessage)> GetDocumnetsAsync(string? language);
|
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.ResDoculink> documents, string ErrorMessage)> GetdocumentsByLinkAsync(string? linkType, string? language, bool? isactive);
|
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.ResDoculink> documents, string ErrorMessage)> GetdocumentsByLinkTypeIdAsync(int? linkTypeId, string? language, bool? isactive);
|
2023-09-22 10:52:17 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.ResDoculink Document, string ErrorMessage)> PostDocumentAsync(Models.Doculink Document);
|
2023-10-24 11:15:13 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.ResDoculink Document, string ErrorMessage)> UpdateDocumentAsync(int id, Models.Doculink Document);
|
2023-12-04 15:00:29 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.ResDoculink Document, string ErrorMessage)> UpdateDocumentAsync(int id, bool isactive);
|
2023-09-22 10:52:17 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.ResDoculink Document, string ErrorMessage)> DeleteDocumentAsync(int id);
|
2023-12-01 18:01:54 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.DoculinkAttachments DoculinkAttachments, string Path)> GetDownloadAttachmentAsync(int id);
|
2023-09-22 10:52:17 -05:00
|
|
|
|
Task<(bool IsSuccess, int counter, string message)> GetDocumentCounter();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|