19 lines
1.2 KiB
C#
19 lines
1.2 KiB
C#
|
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);
|
|||
|
// 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, Models.ResDoculink Document, string ErrorMessage)> PostDocumentAsync(Models.Doculink Document);
|
|||
|
Task<(bool IsSuccess, Models.ResDoculink Document, string ErrorMessage)> UpdateDocumentAsync(int id,Models.Doculink Document);
|
|||
|
Task<(bool IsSuccess, Models.ResDoculink Document, string ErrorMessage)> DeleteDocumentAsync(int id);
|
|||
|
Task<(bool IsSuccess, int counter, string message)> GetDocumentCounter();
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|