//[BasicAuthenticationAttribute]
        public async Task <HttpResponseMessage> EmailLawyerLetter(LawyerLetterEmailRequest lawyerLetterEmailRequest)
        {
            httpResponseMessage = new HttpResponseMessage();
            if (lawyerLetterEmailRequest != null && ModelState.IsValid)
            {
                var DMCANoticeEmailRequestResponse = await _IAccountService.EmailLawyerLetter(lawyerLetterEmailRequest);

                httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK, DMCANoticeEmailRequestResponse);
            }
            else
            {
                httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK, new { Message = CustomErrorMessages.INVALID_INPUTS, Success = false });
            }
            return(httpResponseMessage);
        }
Пример #2
0
 public async Task <BaseResponse> EmailLawyerLetter(LawyerLetterEmailRequest lawyerLetterEmailRequest)
 {
     return(await _IAccountRepository.EmailLawyerLetter(lawyerLetterEmailRequest));
 }