forked from MDCPS/DamageAssessment_Backend
Completed sync call for answer and attachment put and post methods
This commit is contained in:
@ -65,7 +65,7 @@ namespace DamageAssesment.Api.Attachments.Providers
|
||||
return (false, null, ex.Message);
|
||||
}
|
||||
}
|
||||
public async Task<(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage)> PostAttachmentAsync(List<Db.Attachment> Attachments)
|
||||
public (bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage) PostAttachmentAsync(List<Db.Attachment> Attachments)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -82,7 +82,7 @@ namespace DamageAssesment.Api.Attachments.Providers
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage)> PutAttachmentAsync(List<Db.Attachment> Attachments)
|
||||
public (bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage) PutAttachmentAsync(List<Db.Attachment> Attachments)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -119,7 +119,7 @@ namespace DamageAssesment.Api.Attachments.Providers
|
||||
return (false, AttachmentId, "");
|
||||
}
|
||||
}
|
||||
public async Task<(bool IsSuccess,int counter,string message)> GetAttachmentCounter()
|
||||
public (bool IsSuccess,int counter,string message) GetAttachmentCounter()
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -152,7 +152,7 @@ namespace DamageAssesment.Api.Attachments.Providers
|
||||
return (false, AttachmentId, "");
|
||||
}
|
||||
}
|
||||
public async Task<(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage)>GetAttachmentInfo(List<AnswerInfo> answers)
|
||||
public (bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage) GetAttachmentInfo(List<AnswerInfo> answers)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user