public bool RegisterUser(string email, string password, string DOB, string firstname, string lastname, string phone, string streetAddress, string zip, string country, string city) { var ubuoyRepository = new DataLayer.UbuoyRepository(); var result = ubuoyRepository.RegisterUser(email, password, DOB, firstname, lastname, phone, streetAddress, zip, country, city); if (result > 0) return true; else return false; }
//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; }