//creates an interface of a related class
 
  public bool UserExists(string email, string password)
  {
      var repository = new DataLayer.UbuoyRepository();
      if (repository.UserExists(email, password) == 1)
      {
          return true;
      }
      return false;
  }