public int GetOTP(string Host, int Port, string HostUserName, string HostPassword, string ToMailAddress) { var data = _repository.GetUser(ToMailAddress); if (data != null) { int data2 = _coreRepository.MailSender(Host, Port, HostUserName, HostPassword, data); if (data2 == 0) { return(-1); } return(data2); } return(0); }