public MediatorResponse SendMobileVerificationCode(Guid candidateId, string verifyMobileUrl)
 {
     try
     {
         var phoneNumber = _candidateServiceProvider.SendMobileVerificationCode(candidateId);
         var message     = string.Format(LoginPageMessages.MobileVerificationRequiredText, phoneNumber, verifyMobileUrl);
         return(GetMediatorResponse(RegisterMediatorCodes.SendMobileVerificationCode.Success, message, UserMessageLevel.Info));
     }
     catch (CustomException ex)
     {
         if (ex.Code == ErrorCodes.EntityStateError)
         {
             return(GetMediatorResponse(RegisterMediatorCodes.SendMobileVerificationCode.NotRequired));
         }
         return(GetMediatorResponse(RegisterMediatorCodes.SendMobileVerificationCode.Error));
     }
 }