public static void SaveStationUser(long stationId, long userId, bool primaryUserInd, bool gridWritePermissionsInd, long lastUpdatedUserId) { using (var sqlHelper = new InfSqlHelper()) { sqlHelper.ExecuteNonQueryProcedure( "dbo.PSP_StationUser_Save", new SqlParameter("@StationId", stationId), new SqlParameter("@UserId", userId), new SqlParameter("@PrimaryUserInd", primaryUserInd ? "Y" : "N"), new SqlParameter("@GridWritePermissionsInd", gridWritePermissionsInd ? "Y" : "N"), new SqlParameter("@LastUpdatedUserId", lastUpdatedUserId)); } InfSqlHelper.ExpireCache("dbo.PSP_StationsForUserId_Get"); }