You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
855 B
24 lines
855 B
using RemitInboundAPI.Common.Model.RemitModel;
|
|
using RemitInboundAPI.Common.Model;
|
|
using RemitInboundAPI.Common.Helper;
|
|
|
|
namespace RemitInboundAPI.Business.Helper.ValidationHelper
|
|
{
|
|
public class RemittanceStatusValidationHelper
|
|
{
|
|
public async Task<ApiResponse> GetRemittanceStatusValidationRequest(RemittanceStatusModel model)
|
|
{
|
|
ApiResponse _response;
|
|
if (string.IsNullOrEmpty(model.IMEControlNo) && string.IsNullOrEmpty(model.PartnerTransactionId))
|
|
{
|
|
_response = new ApiResponse(ResponseHelper.FAILED, "IMEControlNo and PartnerTransactionId both can not be empty.");
|
|
}
|
|
else
|
|
{
|
|
_response = new ApiResponse(ResponseHelper.SUCCESS, ResponseMessageHelper.SUCCESS);
|
|
}
|
|
|
|
return _response;
|
|
}
|
|
}
|
|
}
|