public async Task <HttpResponseMessage> SignDocument(SignDocumentRequest signDocumentRequest)
        {
            httpResponseMessage = new HttpResponseMessage();
            if (signDocumentRequest != null && ModelState.IsValid)
            {
                var signDocumentRequestResponse = await _IAccountService.SignDocument(signDocumentRequest);

                httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK, signDocumentRequestResponse);
            }
            else
            {
                httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK, new { Message = CustomErrorMessages.INVALID_INPUTS, Success = false });
            }
            return(httpResponseMessage);
        }
예제 #2
0
 public async Task <SignResponse> SignDocument(SignDocumentRequest signDocumentRequest)
 {
     return(await _IAccountRepository.SignDocument(signDocumentRequest));
 }