public int Authenticate(Profile profile) { SqlConnection con = new DbConnection().GetConnection(); try { return(dbProfile.Authenticate(profile, null, con)); } finally { con.Close(); } }
public int Authenticate(Profile profile) { int profileId = dbProfile.Authenticate(profile); return(profileId); }