Beispiel #1
0
        public int CheckEmailExists(String Email)
        {
            int id = 0;

            try
            {
                id = _repository.CheckEmailExists(Email);
            }
            catch (System.Data.SqlClient.SqlException)
            {
                //network issue
                id = -1;
                return(id);
            }

            catch (Exception ex)
            {
                throw;
            }

            return(id);
        }