public async Task <HttpResponseMessage> SaveEnquiry(EnquiryRequest enquiryRequest)
        {
            httpResponseMessage = new HttpResponseMessage();
            if (enquiryRequest != null && ModelState.IsValid)
            {
                var getUserInvoiceResponse = await _IAccountService.SaveEnquiry(enquiryRequest);

                httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK, getUserInvoiceResponse);
            }
            else
            {
                httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK, new { Message = CustomErrorMessages.INVALID_INPUTS, Success = false });
            }
            return(httpResponseMessage);
        }
Beispiel #2
0
 public async Task <BaseResponse> SaveEnquiry(EnquiryRequest enquiryRequest)
 {
     return(await _IAccountRepository.SaveEnquiry(enquiryRequest));
 }