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