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); }
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); }